/*
 * This combined file was created by the DataTables downloader builder:
 *   https://datatables.net/download
 *
 * To rebuild or modify this file with the latest versions of the included
 * software please visit:
 *   https://datatables.net/download/#dt/dt-1.10.18/e-1.9.0/af-2.3.3/fh-3.1.4/r-2.2.2/sc-2.0.0/sl-1.3.0
 *
 * Included libraries:
 *   DataTables 1.10.18, Editor 1.9.0, AutoFill 2.3.3, FixedHeader 3.1.4, Responsive 2.2.2, Scroller 2.0.0, Select 1.3.0
 */

/*! DataTables 1.10.18
 * ©2008-2018 SpryMedia Ltd - datatables.net/license
 */

/**
 * @summary     DataTables
 * @description Paginate, search and order HTML tables
 * @version     1.10.18
 * @file        jquery.dataTables.js
 * @author      SpryMedia Ltd
 * @contact     www.datatables.net
 * @copyright   Copyright 2008-2018 SpryMedia Ltd.
 *
 * This source file is free software, available under the following license:
 *   MIT license - http://datatables.net/license
 *
 * This source file is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
 * or FITNESS FOR A PARTICULAR PURPOSE. See the license files for details.
 *
 * For details please refer to: http://www.datatables.net
 */

/*jslint evil: true, undef: true, browser: true */
/*globals $,require,jQuery,define,_selector_run,_selector_opts,_selector_first,_selector_row_indexes,_ext,_Api,_api_register,_api_registerPlural,_re_new_lines,_re_html,_re_formatted_numeric,_re_escape_regex,_empty,_intVal,_numToDecimal,_isNumber,_isHtml,_htmlNumeric,_pluck,_pluck_order,_range,_stripHtml,_unique,_fnBuildAjax,_fnAjaxUpdate,_fnAjaxParameters,_fnAjaxUpdateDraw,_fnAjaxDataSrc,_fnAddColumn,_fnColumnOptions,_fnAdjustColumnSizing,_fnVisibleToColumnIndex,_fnColumnIndexToVisible,_fnVisbleColumns,_fnGetColumns,_fnColumnTypes,_fnApplyColumnDefs,_fnHungarianMap,_fnCamelToHungarian,_fnLanguageCompat,_fnBrowserDetect,_fnAddData,_fnAddTr,_fnNodeToDataIndex,_fnNodeToColumnIndex,_fnGetCellData,_fnSetCellData,_fnSplitObjNotation,_fnGetObjectDataFn,_fnSetObjectDataFn,_fnGetDataMaster,_fnClearTable,_fnDeleteIndex,_fnInvalidate,_fnGetRowElements,_fnCreateTr,_fnBuildHead,_fnDrawHead,_fnDraw,_fnReDraw,_fnAddOptionsHtml,_fnDetectHeader,_fnGetUniqueThs,_fnFeatureHtmlFilter,_fnFilterComplete,_fnFilterCustom,_fnFilterColumn,_fnFilter,_fnFilterCreateSearch,_fnEscapeRegex,_fnFilterData,_fnFeatureHtmlInfo,_fnUpdateInfo,_fnInfoMacros,_fnInitialise,_fnInitComplete,_fnLengthChange,_fnFeatureHtmlLength,_fnFeatureHtmlPaginate,_fnPageChange,_fnFeatureHtmlProcessing,_fnProcessingDisplay,_fnFeatureHtmlTable,_fnScrollDraw,_fnApplyToChildren,_fnCalculateColumnWidths,_fnThrottle,_fnConvertToWidth,_fnGetWidestNode,_fnGetMaxLenString,_fnStringToCss,_fnSortFlatten,_fnSort,_fnSortAria,_fnSortListener,_fnSortAttachListener,_fnSortingClasses,_fnSortData,_fnSaveState,_fnLoadState,_fnSettingsFromNode,_fnLog,_fnMap,_fnBindAction,_fnCallbackReg,_fnCallbackFire,_fnLengthOverflow,_fnRenderer,_fnDataSource,_fnRowAttributes*/

(function( factory ) {
	"use strict";

	if ( typeof define === 'function' && define.amd ) {
		// AMD
		define( ['jquery'], function ( $ ) {
			return factory( $, window, document );
		} );
	}
	else if ( typeof exports === 'object' ) {
		// CommonJS
		module.exports = function (root, $) {
			if ( ! root ) {
				// CommonJS environments without a window global must pass a
				// root. This will give an error otherwise
				root = window;
			}

			if ( ! $ ) {
				$ = typeof window !== 'undefined' ? // jQuery's factory checks for a global window
					require('jquery') :
					require('jquery')( root );
			}

			return factory( $, root, root.document );
		};
	}
	else {
		// Browser
		factory( jQuery, window, document );
	}
}
(function( $, window, document, undefined ) {
	"use strict";

	/**
	 * DataTables is a plug-in for the jQuery Javascript library. It is a highly
	 * flexible tool, based upon the foundations of progressive enhancement,
	 * which will add advanced interaction controls to any HTML table. For a
	 * full list of features please refer to
	 * [DataTables.net](href="http://datatables.net).
	 *
	 * Note that the `DataTable` object is not a global variable but is aliased
	 * to `jQuery.fn.DataTable` and `jQuery.fn.dataTable` through which it may
	 * be  accessed.
	 *
	 *  @class
	 *  @param {object} [init={}] Configuration object for DataTables. Options
	 *    are defined by {@link DataTable.defaults}
	 *  @requires jQuery 1.7+
	 *
	 *  @example
	 *    // Basic initialisation
	 *    $(document).ready( function {
	 *      $('#example').dataTable();
	 *    } );
	 *
	 *  @example
	 *    // Initialisation with configuration options - in this case, disable
	 *    // pagination and sorting.
	 *    $(document).ready( function {
	 *      $('#example').dataTable( {
	 *        "paginate": false,
	 *        "sort": false
	 *      } );
	 *    } );
	 */
	var DataTable = function ( options )
	{
		/**
		 * Perform a jQuery selector action on the table's TR elements (from the tbody) and
		 * return the resulting jQuery object.
		 *  @param {string|node|jQuery} sSelector jQuery selector or node collection to act on
		 *  @param {object} [oOpts] Optional parameters for modifying the rows to be included
		 *  @param {string} [oOpts.filter=none] Select TR elements that meet the current filter
		 *    criterion ("applied") or all TR elements (i.e. no filter).
		 *  @param {string} [oOpts.order=current] Order of the TR elements in the processed array.
		 *    Can be either 'current', whereby the current sorting of the table is used, or
		 *    'original' whereby the original order the data was read into the table is used.
		 *  @param {string} [oOpts.page=all] Limit the selection to the currently displayed page
		 *    ("current") or not ("all"). If 'current' is given, then order is assumed to be
		 *    'current' and filter is 'applied', regardless of what they might be given as.
		 *  @returns {object} jQuery object, filtered by the given selector.
		 *  @dtopt API
		 *  @deprecated Since v1.10
		 *
		 *  @example
		 *    $(document).ready(function() {
		 *      var oTable = $('#example').dataTable();
		 *
		 *      // Highlight every second row
		 *      oTable.$('tr:odd').css('backgroundColor', 'blue');
		 *    } );
		 *
		 *  @example
		 *    $(document).ready(function() {
		 *      var oTable = $('#example').dataTable();
		 *
		 *      // Filter to rows with 'Webkit' in them, add a background colour and then
		 *      // remove the filter, thus highlighting the 'Webkit' rows only.
		 *      oTable.fnFilter('Webkit');
		 *      oTable.$('tr', {"search": "applied"}).css('backgroundColor', 'blue');
		 *      oTable.fnFilter('');
		 *    } );
		 */
		this.$ = function ( sSelector, oOpts )
		{
			return this.api(true).$( sSelector, oOpts );
		};
		
		
		/**
		 * Almost identical to $ in operation, but in this case returns the data for the matched
		 * rows - as such, the jQuery selector used should match TR row nodes or TD/TH cell nodes
		 * rather than any descendants, so the data can be obtained for the row/cell. If matching
		 * rows are found, the data returned is the original data array/object that was used to
		 * create the row (or a generated array if from a DOM source).
		 *
		 * This method is often useful in-combination with $ where both functions are given the
		 * same parameters and the array indexes will match identically.
		 *  @param {string|node|jQuery} sSelector jQuery selector or node collection to act on
		 *  @param {object} [oOpts] Optional parameters for modifying the rows to be included
		 *  @param {string} [oOpts.filter=none] Select elements that meet the current filter
		 *    criterion ("applied") or all elements (i.e. no filter).
		 *  @param {string} [oOpts.order=current] Order of the data in the processed array.
		 *    Can be either 'current', whereby the current sorting of the table is used, or
		 *    'original' whereby the original order the data was read into the table is used.
		 *  @param {string} [oOpts.page=all] Limit the selection to the currently displayed page
		 *    ("current") or not ("all"). If 'current' is given, then order is assumed to be
		 *    'current' and filter is 'applied', regardless of what they might be given as.
		 *  @returns {array} Data for the matched elements. If any elements, as a result of the
		 *    selector, were not TR, TD or TH elements in the DataTable, they will have a null
		 *    entry in the array.
		 *  @dtopt API
		 *  @deprecated Since v1.10
		 *
		 *  @example
		 *    $(document).ready(function() {
		 *      var oTable = $('#example').dataTable();
		 *
		 *      // Get the data from the first row in the table
		 *      var data = oTable._('tr:first');
		 *
		 *      // Do something useful with the data
		 *      alert( "First cell is: "+data[0] );
		 *    } );
		 *
		 *  @example
		 *    $(document).ready(function() {
		 *      var oTable = $('#example').dataTable();
		 *
		 *      // Filter to 'Webkit' and get all data for
		 *      oTable.fnFilter('Webkit');
		 *      var data = oTable._('tr', {"search": "applied"});
		 *
		 *      // Do something with the data
		 *      alert( data.length+" rows matched the search" );
		 *    } );
		 */
		this._ = function ( sSelector, oOpts )
		{
			return this.api(true).rows( sSelector, oOpts ).data();
		};
		
		
		/**
		 * Create a DataTables Api instance, with the currently selected tables for
		 * the Api's context.
		 * @param {boolean} [traditional=false] Set the API instance's context to be
		 *   only the table referred to by the `DataTable.ext.iApiIndex` option, as was
		 *   used in the API presented by DataTables 1.9- (i.e. the traditional mode),
		 *   or if all tables captured in the jQuery object should be used.
		 * @return {DataTables.Api}
		 */
		this.api = function ( traditional )
		{
			return traditional ?
				new _Api(
					_fnSettingsFromNode( this[ _ext.iApiIndex ] )
				) :
				new _Api( this );
		};
		
		
		/**
		 * Add a single new row or multiple rows of data to the table. Please note
		 * that this is suitable for client-side processing only - if you are using
		 * server-side processing (i.e. "bServerSide": true), then to add data, you
		 * must add it to the data source, i.e. the server-side, through an Ajax call.
		 *  @param {array|object} data The data to be added to the table. This can be:
		 *    <ul>
		 *      <li>1D array of data - add a single row with the data provided</li>
		 *      <li>2D array of arrays - add multiple rows in a single call</li>
		 *      <li>object - data object when using <i>mData</i></li>
		 *      <li>array of objects - multiple data objects when using <i>mData</i></li>
		 *    </ul>
		 *  @param {bool} [redraw=true] redraw the table or not
		 *  @returns {array} An array of integers, representing the list of indexes in
		 *    <i>aoData</i> ({@link DataTable.models.oSettings}) that have been added to
		 *    the table.
		 *  @dtopt API
		 *  @deprecated Since v1.10
		 *
		 *  @example
		 *    // Global var for counter
		 *    var giCount = 2;
		 *
		 *    $(document).ready(function() {
		 *      $('#example').dataTable();
		 *    } );
		 *
		 *    function fnClickAddRow() {
		 *      $('#example').dataTable().fnAddData( [
		 *        giCount+".1",
		 *        giCount+".2",
		 *        giCount+".3",
		 *        giCount+".4" ]
		 *      );
		 *
		 *      giCount++;
		 *    }
		 */
		this.fnAddData = function( data, redraw )
		{
			var api = this.api( true );
		
			/* Check if we want to add multiple rows or not */
			var rows = $.isArray(data) && ( $.isArray(data[0]) || $.isPlainObject(data[0]) ) ?
				api.rows.add( data ) :
				api.row.add( data );
		
			if ( redraw === undefined || redraw ) {
				api.draw();
			}
		
			return rows.flatten().toArray();
		};
		
		
		/**
		 * This function will make DataTables recalculate the column sizes, based on the data
		 * contained in the table and the sizes applied to the columns (in the DOM, CSS or
		 * through the sWidth parameter). This can be useful when the width of the table's
		 * parent element changes (for example a window resize).
		 *  @param {boolean} [bRedraw=true] Redraw the table or not, you will typically want to
		 *  @dtopt API
		 *  @deprecated Since v1.10
		 *
		 *  @example
		 *    $(document).ready(function() {
		 *      var oTable = $('#example').dataTable( {
		 *        "sScrollY": "200px",
		 *        "bPaginate": false
		 *      } );
		 *
		 *      $(window).on('resize', function () {
		 *        oTable.fnAdjustColumnSizing();
		 *      } );
		 *    } );
		 */
		this.fnAdjustColumnSizing = function ( bRedraw )
		{
			var api = this.api( true ).columns.adjust();
			var settings = api.settings()[0];
			var scroll = settings.oScroll;
		
			if ( bRedraw === undefined || bRedraw ) {
				api.draw( false );
			}
			else if ( scroll.sX !== "" || scroll.sY !== "" ) {
				/* If not redrawing, but scrolling, we want to apply the new column sizes anyway */
				_fnScrollDraw( settings );
			}
		};
		
		
		/**
		 * Quickly and simply clear a table
		 *  @param {bool} [bRedraw=true] redraw the table or not
		 *  @dtopt API
		 *  @deprecated Since v1.10
		 *
		 *  @example
		 *    $(document).ready(function() {
		 *      var oTable = $('#example').dataTable();
		 *
		 *      // Immediately 'nuke' the current rows (perhaps waiting for an Ajax callback...)
		 *      oTable.fnClearTable();
		 *    } );
		 */
		this.fnClearTable = function( bRedraw )
		{
			var api = this.api( true ).clear();
		
			if ( bRedraw === undefined || bRedraw ) {
				api.draw();
			}
		};
		
		
		/**
		 * The exact opposite of 'opening' a row, this function will close any rows which
		 * are currently 'open'.
		 *  @param {node} nTr the table row to 'close'
		 *  @returns {int} 0 on success, or 1 if failed (can't find the row)
		 *  @dtopt API
		 *  @deprecated Since v1.10
		 *
		 *  @example
		 *    $(document).ready(function() {
		 *      var oTable;
		 *
		 *      // 'open' an information row when a row is clicked on
		 *      $('#example tbody tr').click( function () {
		 *        if ( oTable.fnIsOpen(this) ) {
		 *          oTable.fnClose( this );
		 *        } else {
		 *          oTable.fnOpen( this, "Temporary row opened", "info_row" );
		 *        }
		 *      } );
		 *
		 *      oTable = $('#example').dataTable();
		 *    } );
		 */
		this.fnClose = function( nTr )
		{
			this.api( true ).row( nTr ).child.hide();
		};
		
		
		/**
		 * Remove a row for the table
		 *  @param {mixed} target The index of the row from aoData to be deleted, or
		 *    the TR element you want to delete
		 *  @param {function|null} [callBack] Callback function
		 *  @param {bool} [redraw=true] Redraw the table or not
		 *  @returns {array} The row that was deleted
		 *  @dtopt API
		 *  @deprecated Since v1.10
		 *
		 *  @example
		 *    $(document).ready(function() {
		 *      var oTable = $('#example').dataTable();
		 *
		 *      // Immediately remove the first row
		 *      oTable.fnDeleteRow( 0 );
		 *    } );
		 */
		this.fnDeleteRow = function( target, callback, redraw )
		{
			var api = this.api( true );
			var rows = api.rows( target );
			var settings = rows.settings()[0];
			var data = settings.aoData[ rows[0][0] ];
		
			rows.remove();
		
			if ( callback ) {
				callback.call( this, settings, data );
			}
		
			if ( redraw === undefined || redraw ) {
				api.draw();
			}
		
			return data;
		};
		
		
		/**
		 * Restore the table to it's original state in the DOM by removing all of DataTables
		 * enhancements, alterations to the DOM structure of the table and event listeners.
		 *  @param {boolean} [remove=false] Completely remove the table from the DOM
		 *  @dtopt API
		 *  @deprecated Since v1.10
		 *
		 *  @example
		 *    $(document).ready(function() {
		 *      // This example is fairly pointless in reality, but shows how fnDestroy can be used
		 *      var oTable = $('#example').dataTable();
		 *      oTable.fnDestroy();
		 *    } );
		 */
		this.fnDestroy = function ( remove )
		{
			this.api( true ).destroy( remove );
		};
		
		
		/**
		 * Redraw the table
		 *  @param {bool} [complete=true] Re-filter and resort (if enabled) the table before the draw.
		 *  @dtopt API
		 *  @deprecated Since v1.10
		 *
		 *  @example
		 *    $(document).ready(function() {
		 *      var oTable = $('#example').dataTable();
		 *
		 *      // Re-draw the table - you wouldn't want to do it here, but it's an example :-)
		 *      oTable.fnDraw();
		 *    } );
		 */
		this.fnDraw = function( complete )
		{
			// Note that this isn't an exact match to the old call to _fnDraw - it takes
			// into account the new data, but can hold position.
			this.api( true ).draw( complete );
		};
		
		
		/**
		 * Filter the input based on data
		 *  @param {string} sInput String to filter the table on
		 *  @param {int|null} [iColumn] Column to limit filtering to
		 *  @param {bool} [bRegex=false] Treat as regular expression or not
		 *  @param {bool} [bSmart=true] Perform smart filtering or not
		 *  @param {bool} [bShowGlobal=true] Show the input global filter in it's input box(es)
		 *  @param {bool} [bCaseInsensitive=true] Do case-insensitive matching (true) or not (false)
		 *  @dtopt API
		 *  @deprecated Since v1.10
		 *
		 *  @example
		 *    $(document).ready(function() {
		 *      var oTable = $('#example').dataTable();
		 *
		 *      // Sometime later - filter...
		 *      oTable.fnFilter( 'test string' );
		 *    } );
		 */
		this.fnFilter = function( sInput, iColumn, bRegex, bSmart, bShowGlobal, bCaseInsensitive )
		{
			var api = this.api( true );
		
			if ( iColumn === null || iColumn === undefined ) {
				api.search( sInput, bRegex, bSmart, bCaseInsensitive );
			}
			else {
				api.column( iColumn ).search( sInput, bRegex, bSmart, bCaseInsensitive );
			}
		
			api.draw();
		};
		
		
		/**
		 * Get the data for the whole table, an individual row or an individual cell based on the
		 * provided parameters.
		 *  @param {int|node} [src] A TR row node, TD/TH cell node or an integer. If given as
		 *    a TR node then the data source for the whole row will be returned. If given as a
		 *    TD/TH cell node then iCol will be automatically calculated and the data for the
		 *    cell returned. If given as an integer, then this is treated as the aoData internal
		 *    data index for the row (see fnGetPosition) and the data for that row used.
		 *  @param {int} [col] Optional column index that you want the data of.
		 *  @returns {array|object|string} If mRow is undefined, then the data for all rows is
		 *    returned. If mRow is defined, just data for that row, and is iCol is
		 *    defined, only data for the designated cell is returned.
		 *  @dtopt API
		 *  @deprecated Since v1.10
		 *
		 *  @example
		 *    // Row data
		 *    $(document).ready(function() {
		 *      oTable = $('#example').dataTable();
		 *
		 *      oTable.$('tr').click( function () {
		 *        var data = oTable.fnGetData( this );
		 *        // ... do something with the array / object of data for the row
		 *      } );
		 *    } );
		 *
		 *  @example
		 *    // Individual cell data
		 *    $(document).ready(function() {
		 *      oTable = $('#example').dataTable();
		 *
		 *      oTable.$('td').click( function () {
		 *        var sData = oTable.fnGetData( this );
		 *        alert( 'The cell clicked on had the value of '+sData );
		 *      } );
		 *    } );
		 */
		this.fnGetData = function( src, col )
		{
			var api = this.api( true );
		
			if ( src !== undefined ) {
				var type = src.nodeName ? src.nodeName.toLowerCase() : '';
		
				return col !== undefined || type == 'td' || type == 'th' ?
					api.cell( src, col ).data() :
					api.row( src ).data() || null;
			}
		
			return api.data().toArray();
		};
		
		
		/**
		 * Get an array of the TR nodes that are used in the table's body. Note that you will
		 * typically want to use the '$' API method in preference to this as it is more
		 * flexible.
		 *  @param {int} [iRow] Optional row index for the TR element you want
		 *  @returns {array|node} If iRow is undefined, returns an array of all TR elements
		 *    in the table's body, or iRow is defined, just the TR element requested.
		 *  @dtopt API
		 *  @deprecated Since v1.10
		 *
		 *  @example
		 *    $(document).ready(function() {
		 *      var oTable = $('#example').dataTable();
		 *
		 *      // Get the nodes from the table
		 *      var nNodes = oTable.fnGetNodes( );
		 *    } );
		 */
		this.fnGetNodes = function( iRow )
		{
			var api = this.api( true );
		
			return iRow !== undefined ?
				api.row( iRow ).node() :
				api.rows().nodes().flatten().toArray();
		};
		
		
		/**
		 * Get the array indexes of a particular cell from it's DOM element
		 * and column index including hidden columns
		 *  @param {node} node this can either be a TR, TD or TH in the table's body
		 *  @returns {int} If nNode is given as a TR, then a single index is returned, or
		 *    if given as a cell, an array of [row index, column index (visible),
		 *    column index (all)] is given.
		 *  @dtopt API
		 *  @deprecated Since v1.10
		 *
		 *  @example
		 *    $(document).ready(function() {
		 *      $('#example tbody td').click( function () {
		 *        // Get the position of the current data from the node
		 *        var aPos = oTable.fnGetPosition( this );
		 *
		 *        // Get the data array for this row
		 *        var aData = oTable.fnGetData( aPos[0] );
		 *
		 *        // Update the data array and return the value
		 *        aData[ aPos[1] ] = 'clicked';
		 *        this.innerHTML = 'clicked';
		 *      } );
		 *
		 *      // Init DataTables
		 *      oTable = $('#example').dataTable();
		 *    } );
		 */
		this.fnGetPosition = function( node )
		{
			var api = this.api( true );
			var nodeName = node.nodeName.toUpperCase();
		
			if ( nodeName == 'TR' ) {
				return api.row( node ).index();
			}
			else if ( nodeName == 'TD' || nodeName == 'TH' ) {
				var cell = api.cell( node ).index();
		
				return [
					cell.row,
					cell.columnVisible,
					cell.column
				];
			}
			return null;
		};
		
		
		/**
		 * Check to see if a row is 'open' or not.
		 *  @param {node} nTr the table row to check
		 *  @returns {boolean} true if the row is currently open, false otherwise
		 *  @dtopt API
		 *  @deprecated Since v1.10
		 *
		 *  @example
		 *    $(document).ready(function() {
		 *      var oTable;
		 *
		 *      // 'open' an information row when a row is clicked on
		 *      $('#example tbody tr').click( function () {
		 *        if ( oTable.fnIsOpen(this) ) {
		 *          oTable.fnClose( this );
		 *        } else {
		 *          oTable.fnOpen( this, "Temporary row opened", "info_row" );
		 *        }
		 *      } );
		 *
		 *      oTable = $('#example').dataTable();
		 *    } );
		 */
		this.fnIsOpen = function( nTr )
		{
			return this.api( true ).row( nTr ).child.isShown();
		};
		
		
		/**
		 * This function will place a new row directly after a row which is currently
		 * on display on the page, with the HTML contents that is passed into the
		 * function. This can be used, for example, to ask for confirmation that a
		 * particular record should be deleted.
		 *  @param {node} nTr The table row to 'open'
		 *  @param {string|node|jQuery} mHtml The HTML to put into the row
		 *  @param {string} sClass Class to give the new TD cell
		 *  @returns {node} The row opened. Note that if the table row passed in as the
		 *    first parameter, is not found in the table, this method will silently
		 *    return.
		 *  @dtopt API
		 *  @deprecated Since v1.10
		 *
		 *  @example
		 *    $(document).ready(function() {
		 *      var oTable;
		 *
		 *      // 'open' an information row when a row is clicked on
		 *      $('#example tbody tr').click( function () {
		 *        if ( oTable.fnIsOpen(this) ) {
		 *          oTable.fnClose( this );
		 *        } else {
		 *          oTable.fnOpen( this, "Temporary row opened", "info_row" );
		 *        }
		 *      } );
		 *
		 *      oTable = $('#example').dataTable();
		 *    } );
		 */
		this.fnOpen = function( nTr, mHtml, sClass )
		{
			return this.api( true )
				.row( nTr )
				.child( mHtml, sClass )
				.show()
				.child()[0];
		};
		
		
		/**
		 * Change the pagination - provides the internal logic for pagination in a simple API
		 * function. With this function you can have a DataTables table go to the next,
		 * previous, first or last pages.
		 *  @param {string|int} mAction Paging action to take: "first", "previous", "next" or "last"
		 *    or page number to jump to (integer), note that page 0 is the first page.
		 *  @param {bool} [bRedraw=true] Redraw the table or not
		 *  @dtopt API
		 *  @deprecated Since v1.10
		 *
		 *  @example
		 *    $(document).ready(function() {
		 *      var oTable = $('#example').dataTable();
		 *      oTable.fnPageChange( 'next' );
		 *    } );
		 */
		this.fnPageChange = function ( mAction, bRedraw )
		{
			var api = this.api( true ).page( mAction );
		
			if ( bRedraw === undefined || bRedraw ) {
				api.draw(false);
			}
		};
		
		
		/**
		 * Show a particular column
		 *  @param {int} iCol The column whose display should be changed
		 *  @param {bool} bShow Show (true) or hide (false) the column
		 *  @param {bool} [bRedraw=true] Redraw the table or not
		 *  @dtopt API
		 *  @deprecated Since v1.10
		 *
		 *  @example
		 *    $(document).ready(function() {
		 *      var oTable = $('#example').dataTable();
		 *
		 *      // Hide the second column after initialisation
		 *      oTable.fnSetColumnVis( 1, false );
		 *    } );
		 */
		this.fnSetColumnVis = function ( iCol, bShow, bRedraw )
		{
			var api = this.api( true ).column( iCol ).visible( bShow );
		
			if ( bRedraw === undefined || bRedraw ) {
				api.columns.adjust().draw();
			}
		};
		
		
		/**
		 * Get the settings for a particular table for external manipulation
		 *  @returns {object} DataTables settings object. See
		 *    {@link DataTable.models.oSettings}
		 *  @dtopt API
		 *  @deprecated Since v1.10
		 *
		 *  @example
		 *    $(document).ready(function() {
		 *      var oTable = $('#example').dataTable();
		 *      var oSettings = oTable.fnSettings();
		 *
		 *      // Show an example parameter from the settings
		 *      alert( oSettings._iDisplayStart );
		 *    } );
		 */
		this.fnSettings = function()
		{
			return _fnSettingsFromNode( this[_ext.iApiIndex] );
		};
		
		
		/**
		 * Sort the table by a particular column
		 *  @param {int} iCol the data index to sort on. Note that this will not match the
		 *    'display index' if you have hidden data entries
		 *  @dtopt API
		 *  @deprecated Since v1.10
		 *
		 *  @example
		 *    $(document).ready(function() {
		 *      var oTable = $('#example').dataTable();
		 *
		 *      // Sort immediately with columns 0 and 1
		 *      oTable.fnSort( [ [0,'asc'], [1,'asc'] ] );
		 *    } );
		 */
		this.fnSort = function( aaSort )
		{
			this.api( true ).order( aaSort ).draw();
		};
		
		
		/**
		 * Attach a sort listener to an element for a given column
		 *  @param {node} nNode the element to attach the sort listener to
		 *  @param {int} iColumn the column that a click on this node will sort on
		 *  @param {function} [fnCallback] callback function when sort is run
		 *  @dtopt API
		 *  @deprecated Since v1.10
		 *
		 *  @example
		 *    $(document).ready(function() {
		 *      var oTable = $('#example').dataTable();
		 *
		 *      // Sort on column 1, when 'sorter' is clicked on
		 *      oTable.fnSortListener( document.getElementById('sorter'), 1 );
		 *    } );
		 */
		this.fnSortListener = function( nNode, iColumn, fnCallback )
		{
			this.api( true ).order.listener( nNode, iColumn, fnCallback );
		};
		
		
		/**
		 * Update a table cell or row - this method will accept either a single value to
		 * update the cell with, an array of values with one element for each column or
		 * an object in the same format as the original data source. The function is
		 * self-referencing in order to make the multi column updates easier.
		 *  @param {object|array|string} mData Data to update the cell/row with
		 *  @param {node|int} mRow TR element you want to update or the aoData index
		 *  @param {int} [iColumn] The column to update, give as null or undefined to
		 *    update a whole row.
		 *  @param {bool} [bRedraw=true] Redraw the table or not
		 *  @param {bool} [bAction=true] Perform pre-draw actions or not
		 *  @returns {int} 0 on success, 1 on error
		 *  @dtopt API
		 *  @deprecated Since v1.10
		 *
		 *  @example
		 *    $(document).ready(function() {
		 *      var oTable = $('#example').dataTable();
		 *      oTable.fnUpdate( 'Example update', 0, 0 ); // Single cell
		 *      oTable.fnUpdate( ['a', 'b', 'c', 'd', 'e'], $('tbody tr')[0] ); // Row
		 *    } );
		 */
		this.fnUpdate = function( mData, mRow, iColumn, bRedraw, bAction )
		{
			var api = this.api( true );
		
			if ( iColumn === undefined || iColumn === null ) {
				api.row( mRow ).data( mData );
			}
			else {
				api.cell( mRow, iColumn ).data( mData );
			}
		
			if ( bAction === undefined || bAction ) {
				api.columns.adjust();
			}
		
			if ( bRedraw === undefined || bRedraw ) {
				api.draw();
			}
			return 0;
		};
		
		
		/**
		 * Provide a common method for plug-ins to check the version of DataTables being used, in order
		 * to ensure compatibility.
		 *  @param {string} sVersion Version string to check for, in the format "X.Y.Z". Note that the
		 *    formats "X" and "X.Y" are also acceptable.
		 *  @returns {boolean} true if this version of DataTables is greater or equal to the required
		 *    version, or false if this version of DataTales is not suitable
		 *  @method
		 *  @dtopt API
		 *  @deprecated Since v1.10
		 *
		 *  @example
		 *    $(document).ready(function() {
		 *      var oTable = $('#example').dataTable();
		 *      alert( oTable.fnVersionCheck( '1.9.0' ) );
		 *    } );
		 */
		this.fnVersionCheck = _ext.fnVersionCheck;
		

		var _that = this;
		var emptyInit = options === undefined;
		var len = this.length;

		if ( emptyInit ) {
			options = {};
		}

		this.oApi = this.internal = _ext.internal;

		// Extend with old style plug-in API methods
		for ( var fn in DataTable.ext.internal ) {
			if ( fn ) {
				this[fn] = _fnExternApiFunc(fn);
			}
		}

		this.each(function() {
			// For each initialisation we want to give it a clean initialisation
			// object that can be bashed around
			var o = {};
			var oInit = len > 1 ? // optimisation for single table case
				_fnExtend( o, options, true ) :
				options;

			/*global oInit,_that,emptyInit*/
			var i=0, iLen, j, jLen, k, kLen;
			var sId = this.getAttribute( 'id' );
			var bInitHandedOff = false;
			var defaults = DataTable.defaults;
			var $this = $(this);
			
			
			/* Sanity check */
			if ( this.nodeName.toLowerCase() != 'table' )
			{
				_fnLog( null, 0, 'Non-table node initialisation ('+this.nodeName+')', 2 );
				return;
			}
			
			/* Backwards compatibility for the defaults */
			_fnCompatOpts( defaults );
			_fnCompatCols( defaults.column );
			
			/* Convert the camel-case defaults to Hungarian */
			_fnCamelToHungarian( defaults, defaults, true );
			_fnCamelToHungarian( defaults.column, defaults.column, true );
			
			/* Setting up the initialisation object */
			_fnCamelToHungarian( defaults, $.extend( oInit, $this.data() ) );
			
			
			
			/* Check to see if we are re-initialising a table */
			var allSettings = DataTable.settings;
			for ( i=0, iLen=allSettings.length ; i<iLen ; i++ )
			{
				var s = allSettings[i];
			
				/* Base check on table node */
				if (
					s.nTable == this ||
					(s.nTHead && s.nTHead.parentNode == this) ||
					(s.nTFoot && s.nTFoot.parentNode == this)
				) {
					var bRetrieve = oInit.bRetrieve !== undefined ? oInit.bRetrieve : defaults.bRetrieve;
					var bDestroy = oInit.bDestroy !== undefined ? oInit.bDestroy : defaults.bDestroy;
			
					if ( emptyInit || bRetrieve )
					{
						return s.oInstance;
					}
					else if ( bDestroy )
					{
						s.oInstance.fnDestroy();
						break;
					}
					else
					{
						_fnLog( s, 0, 'Cannot reinitialise DataTable', 3 );
						return;
					}
				}
			
				/* If the element we are initialising has the same ID as a table which was previously
				 * initialised, but the table nodes don't match (from before) then we destroy the old
				 * instance by simply deleting it. This is under the assumption that the table has been
				 * destroyed by other methods. Anyone using non-id selectors will need to do this manually
				 */
				if ( s.sTableId == this.id )
				{
					allSettings.splice( i, 1 );
					break;
				}
			}
			
			/* Ensure the table has an ID - required for accessibility */
			if ( sId === null || sId === "" )
			{
				sId = "DataTables_Table_"+(DataTable.ext._unique++);
				this.id = sId;
			}
			
			/* Create the settings object for this table and set some of the default parameters */
			var oSettings = $.extend( true, {}, DataTable.models.oSettings, {
				"sDestroyWidth": $this[0].style.width,
				"sInstance":     sId,
				"sTableId":      sId
			} );
			oSettings.nTable = this;
			oSettings.oApi   = _that.internal;
			oSettings.oInit  = oInit;
			
			allSettings.push( oSettings );
			
			// Need to add the instance after the instance after the settings object has been added
			// to the settings array, so we can self reference the table instance if more than one
			oSettings.oInstance = (_that.length===1) ? _that : $this.dataTable();
			
			// Backwards compatibility, before we apply all the defaults
			_fnCompatOpts( oInit );
			_fnLanguageCompat( oInit.oLanguage );
			
			// If the length menu is given, but the init display length is not, use the length menu
			if ( oInit.aLengthMenu && ! oInit.iDisplayLength )
			{
				oInit.iDisplayLength = $.isArray( oInit.aLengthMenu[0] ) ?
					oInit.aLengthMenu[0][0] : oInit.aLengthMenu[0];
			}
			
			// Apply the defaults and init options to make a single init object will all
			// options defined from defaults and instance options.
			oInit = _fnExtend( $.extend( true, {}, defaults ), oInit );
			
			
			// Map the initialisation options onto the settings object
			_fnMap( oSettings.oFeatures, oInit, [
				"bPaginate",
				"bLengthChange",
				"bFilter",
				"bSort",
				"bSortMulti",
				"bInfo",
				"bProcessing",
				"bAutoWidth",
				"bSortClasses",
				"bServerSide",
				"bDeferRender"
			] );
			_fnMap( oSettings, oInit, [
				"asStripeClasses",
				"ajax",
				"fnServerData",
				"fnFormatNumber",
				"sServerMethod",
				"aaSorting",
				"aaSortingFixed",
				"aLengthMenu",
				"sPaginationType",
				"sAjaxSource",
				"sAjaxDataProp",
				"iStateDuration",
				"sDom",
				"bSortCellsTop",
				"iTabIndex",
				"fnStateLoadCallback",
				"fnStateSaveCallback",
				"renderer",
				"searchDelay",
				"rowId",
				[ "iCookieDuration", "iStateDuration" ], // backwards compat
				[ "oSearch", "oPreviousSearch" ],
				[ "aoSearchCols", "aoPreSearchCols" ],
				[ "iDisplayLength", "_iDisplayLength" ]
			] );
			_fnMap( oSettings.oScroll, oInit, [
				[ "sScrollX", "sX" ],
				[ "sScrollXInner", "sXInner" ],
				[ "sScrollY", "sY" ],
				[ "bScrollCollapse", "bCollapse" ]
			] );
			_fnMap( oSettings.oLanguage, oInit, "fnInfoCallback" );
			
			/* Callback functions which are array driven */
			_fnCallbackReg( oSettings, 'aoDrawCallback',       oInit.fnDrawCallback,      'user' );
			_fnCallbackReg( oSettings, 'aoServerParams',       oInit.fnServerParams,      'user' );
			_fnCallbackReg( oSettings, 'aoStateSaveParams',    oInit.fnStateSaveParams,   'user' );
			_fnCallbackReg( oSettings, 'aoStateLoadParams',    oInit.fnStateLoadParams,   'user' );
			_fnCallbackReg( oSettings, 'aoStateLoaded',        oInit.fnStateLoaded,       'user' );
			_fnCallbackReg( oSettings, 'aoRowCallback',        oInit.fnRowCallback,       'user' );
			_fnCallbackReg( oSettings, 'aoRowCreatedCallback', oInit.fnCreatedRow,        'user' );
			_fnCallbackReg( oSettings, 'aoHeaderCallback',     oInit.fnHeaderCallback,    'user' );
			_fnCallbackReg( oSettings, 'aoFooterCallback',     oInit.fnFooterCallback,    'user' );
			_fnCallbackReg( oSettings, 'aoInitComplete',       oInit.fnInitComplete,      'user' );
			_fnCallbackReg( oSettings, 'aoPreDrawCallback',    oInit.fnPreDrawCallback,   'user' );
			
			oSettings.rowIdFn = _fnGetObjectDataFn( oInit.rowId );
			
			/* Browser support detection */
			_fnBrowserDetect( oSettings );
			
			var oClasses = oSettings.oClasses;
			
			$.extend( oClasses, DataTable.ext.classes, oInit.oClasses );
			$this.addClass( oClasses.sTable );
			
			
			if ( oSettings.iInitDisplayStart === undefined )
			{
				/* Display start point, taking into account the save saving */
				oSettings.iInitDisplayStart = oInit.iDisplayStart;
				oSettings._iDisplayStart = oInit.iDisplayStart;
			}
			
			if ( oInit.iDeferLoading !== null )
			{
				oSettings.bDeferLoading = true;
				var tmp = $.isArray( oInit.iDeferLoading );
				oSettings._iRecordsDisplay = tmp ? oInit.iDeferLoading[0] : oInit.iDeferLoading;
				oSettings._iRecordsTotal = tmp ? oInit.iDeferLoading[1] : oInit.iDeferLoading;
			}
			
			/* Language definitions */
			var oLanguage = oSettings.oLanguage;
			$.extend( true, oLanguage, oInit.oLanguage );
			
			if ( oLanguage.sUrl )
			{
				/* Get the language definitions from a file - because this Ajax call makes the language
				 * get async to the remainder of this function we use bInitHandedOff to indicate that
				 * _fnInitialise will be fired by the returned Ajax handler, rather than the constructor
				 */
				$.ajax( {
					dataType: 'json',
					url: oLanguage.sUrl,
					success: function ( json ) {
						_fnLanguageCompat( json );
						_fnCamelToHungarian( defaults.oLanguage, json );
						$.extend( true, oLanguage, json );
						_fnInitialise( oSettings );
					},
					error: function () {
						// Error occurred loading language file, continue on as best we can
						_fnInitialise( oSettings );
					}
				} );
				bInitHandedOff = true;
			}
			
			/*
			 * Stripes
			 */
			if ( oInit.asStripeClasses === null )
			{
				oSettings.asStripeClasses =[
					oClasses.sStripeOdd,
					oClasses.sStripeEven
				];
			}
			
			/* Remove row stripe classes if they are already on the table row */
			var stripeClasses = oSettings.asStripeClasses;
			var rowOne = $this.children('tbody').find('tr').eq(0);
			if ( $.inArray( true, $.map( stripeClasses, function(el, i) {
				return rowOne.hasClass(el);
			} ) ) !== -1 ) {
				$('tbody tr', this).removeClass( stripeClasses.join(' ') );
				oSettings.asDestroyStripes = stripeClasses.slice();
			}
			
			/*
			 * Columns
			 * See if we should load columns automatically or use defined ones
			 */
			var anThs = [];
			var aoColumnsInit;
			var nThead = this.getElementsByTagName('thead');
			if ( nThead.length !== 0 )
			{
				_fnDetectHeader( oSettings.aoHeader, nThead[0] );
				anThs = _fnGetUniqueThs( oSettings );
			}
			
			/* If not given a column array, generate one with nulls */
			if ( oInit.aoColumns === null )
			{
				aoColumnsInit = [];
				for ( i=0, iLen=anThs.length ; i<iLen ; i++ )
				{
					aoColumnsInit.push( null );
				}
			}
			else
			{
				aoColumnsInit = oInit.aoColumns;
			}
			
			/* Add the columns */
			for ( i=0, iLen=aoColumnsInit.length ; i<iLen ; i++ )
			{
				_fnAddColumn( oSettings, anThs ? anThs[i] : null );
			}
			
			/* Apply the column definitions */
			_fnApplyColumnDefs( oSettings, oInit.aoColumnDefs, aoColumnsInit, function (iCol, oDef) {
				_fnColumnOptions( oSettings, iCol, oDef );
			} );
			
			/* HTML5 attribute detection - build an mData object automatically if the
			 * attributes are found
			 */
			if ( rowOne.length ) {
				var a = function ( cell, name ) {
					return cell.getAttribute( 'data-'+name ) !== null ? name : null;
				};
			
				$( rowOne[0] ).children('th, td').each( function (i, cell) {
					var col = oSettings.aoColumns[i];
			
					if ( col.mData === i ) {
						var sort = a( cell, 'sort' ) || a( cell, 'order' );
						var filter = a( cell, 'filter' ) || a( cell, 'search' );
			
						if ( sort !== null || filter !== null ) {
							col.mData = {
								_:      i+'.display',
								sort:   sort !== null   ? i+'.@data-'+sort   : undefined,
								type:   sort !== null   ? i+'.@data-'+sort   : undefined,
								filter: filter !== null ? i+'.@data-'+filter : undefined
							};
			
							_fnColumnOptions( oSettings, i );
						}
					}
				} );
			}
			
			var features = oSettings.oFeatures;
			var loadedInit = function () {
				/*
				 * Sorting
				 * @todo For modularisation (1.11) this needs to do into a sort start up handler
				 */
			
				// If aaSorting is not defined, then we use the first indicator in asSorting
				// in case that has been altered, so the default sort reflects that option
				if ( oInit.aaSorting === undefined ) {
					var sorting = oSettings.aaSorting;
					for ( i=0, iLen=sorting.length ; i<iLen ; i++ ) {
						sorting[i][1] = oSettings.aoColumns[ i ].asSorting[0];
					}
				}
			
				/* Do a first pass on the sorting classes (allows any size changes to be taken into
				 * account, and also will apply sorting disabled classes if disabled
				 */
				_fnSortingClasses( oSettings );
			
				if ( features.bSort ) {
					_fnCallbackReg( oSettings, 'aoDrawCallback', function () {
						if ( oSettings.bSorted ) {
							var aSort = _fnSortFlatten( oSettings );
							var sortedColumns = {};
			
							$.each( aSort, function (i, val) {
								sortedColumns[ val.src ] = val.dir;
							} );
			
							_fnCallbackFire( oSettings, null, 'order', [oSettings, aSort, sortedColumns] );
							_fnSortAria( oSettings );
						}
					} );
				}
			
				_fnCallbackReg( oSettings, 'aoDrawCallback', function () {
					if ( oSettings.bSorted || _fnDataSource( oSettings ) === 'ssp' || features.bDeferRender ) {
						_fnSortingClasses( oSettings );
					}
				}, 'sc' );
			
			
				/*
				 * Final init
				 * Cache the header, body and footer as required, creating them if needed
				 */
			
				// Work around for Webkit bug 83867 - store the caption-side before removing from doc
				var captions = $this.children('caption').each( function () {
					this._captionSide = $(this).css('caption-side');
				} );
			
				var thead = $this.children('thead');
				if ( thead.length === 0 ) {
					thead = $('<thead/>').appendTo($this);
				}
				oSettings.nTHead = thead[0];
			
				var tbody = $this.children('tbody');
				if ( tbody.length === 0 ) {
					tbody = $('<tbody/>').appendTo($this);
				}
				oSettings.nTBody = tbody[0];
			
				var tfoot = $this.children('tfoot');
				if ( tfoot.length === 0 && captions.length > 0 && (oSettings.oScroll.sX !== "" || oSettings.oScroll.sY !== "") ) {
					// If we are a scrolling table, and no footer has been given, then we need to create
					// a tfoot element for the caption element to be appended to
					tfoot = $('<tfoot/>').appendTo($this);
				}
			
				if ( tfoot.length === 0 || tfoot.children().length === 0 ) {
					$this.addClass( oClasses.sNoFooter );
				}
				else if ( tfoot.length > 0 ) {
					oSettings.nTFoot = tfoot[0];
					_fnDetectHeader( oSettings.aoFooter, oSettings.nTFoot );
				}
			
				/* Check if there is data passing into the constructor */
				if ( oInit.aaData ) {
					for ( i=0 ; i<oInit.aaData.length ; i++ ) {
						_fnAddData( oSettings, oInit.aaData[ i ] );
					}
				}
				else if ( oSettings.bDeferLoading || _fnDataSource( oSettings ) == 'dom' ) {
					/* Grab the data from the page - only do this when deferred loading or no Ajax
					 * source since there is no point in reading the DOM data if we are then going
					 * to replace it with Ajax data
					 */
					_fnAddTr( oSettings, $(oSettings.nTBody).children('tr') );
				}
			
				/* Copy the data index array */
				oSettings.aiDisplay = oSettings.aiDisplayMaster.slice();
			
				/* Initialisation complete - table can be drawn */
				oSettings.bInitialised = true;
			
				/* Check if we need to initialise the table (it might not have been handed off to the
				 * language processor)
				 */
				if ( bInitHandedOff === false ) {
					_fnInitialise( oSettings );
				}
			};
			
			/* Must be done after everything which can be overridden by the state saving! */
			if ( oInit.bStateSave )
			{
				features.bStateSave = true;
				_fnCallbackReg( oSettings, 'aoDrawCallback', _fnSaveState, 'state_save' );
				_fnLoadState( oSettings, oInit, loadedInit );
			}
			else {
				loadedInit();
			}
			
		} );
		_that = null;
		return this;
	};

	
	/*
	 * It is useful to have variables which are scoped locally so only the
	 * DataTables functions can access them and they don't leak into global space.
	 * At the same time these functions are often useful over multiple files in the
	 * core and API, so we list, or at least document, all variables which are used
	 * by DataTables as private variables here. This also ensures that there is no
	 * clashing of variable names and that they can easily referenced for reuse.
	 */
	
	
	// Defined else where
	//  _selector_run
	//  _selector_opts
	//  _selector_first
	//  _selector_row_indexes
	
	var _ext; // DataTable.ext
	var _Api; // DataTable.Api
	var _api_register; // DataTable.Api.register
	var _api_registerPlural; // DataTable.Api.registerPlural
	
	var _re_dic = {};
	var _re_new_lines = /[\r\n]/g;
	var _re_html = /<.*?>/g;
	
	// This is not strict ISO8601 - Date.parse() is quite lax, although
	// implementations differ between browsers.
	var _re_date = /^\d{2,4}[\.\/\-]\d{1,2}[\.\/\-]\d{1,2}([T ]{1}\d{1,2}[:\.]\d{2}([\.:]\d{2})?)?$/;
	
	// Escape regular expression special characters
	var _re_escape_regex = new RegExp( '(\\' + [ '/', '.', '*', '+', '?', '|', '(', ')', '[', ']', '{', '}', '\\', '$', '^', '-' ].join('|\\') + ')', 'g' );
	
	// http://en.wikipedia.org/wiki/Foreign_exchange_market
	// - \u20BD - Russian ruble.
	// - \u20a9 - South Korean Won
	// - \u20BA - Turkish Lira
	// - \u20B9 - Indian Rupee
	// - R - Brazil (R$) and South Africa
	// - fr - Swiss Franc
	// - kr - Swedish krona, Norwegian krone and Danish krone
	// - \u2009 is thin space and \u202F is narrow no-break space, both used in many
	// - Ƀ - Bitcoin
	// - Ξ - Ethereum
	//   standards as thousands separators.
	var _re_formatted_numeric = /[',$£€¥%\u2009\u202F\u20BD\u20a9\u20BArfkɃΞ]/gi;
	
	
	var _empty = function ( d ) {
		return !d || d === true || d === '-' ? true : false;
	};
	
	
	var _intVal = function ( s ) {
		var integer = parseInt( s, 10 );
		return !isNaN(integer) && isFinite(s) ? integer : null;
	};
	
	// Convert from a formatted number with characters other than `.` as the
	// decimal place, to a Javascript number
	var _numToDecimal = function ( num, decimalPoint ) {
		// Cache created regular expressions for speed as this function is called often
		if ( ! _re_dic[ decimalPoint ] ) {
			_re_dic[ decimalPoint ] = new RegExp( _fnEscapeRegex( decimalPoint ), 'g' );
		}
		return typeof num === 'string' && decimalPoint !== '.' ?
			num.replace( /\./g, '' ).replace( _re_dic[ decimalPoint ], '.' ) :
			num;
	};
	
	
	var _isNumber = function ( d, decimalPoint, formatted ) {
		var strType = typeof d === 'string';
	
		// If empty return immediately so there must be a number if it is a
		// formatted string (this stops the string "k", or "kr", etc being detected
		// as a formatted number for currency
		if ( _empty( d ) ) {
			return true;
		}
	
		if ( decimalPoint && strType ) {
			d = _numToDecimal( d, decimalPoint );
		}
	
		if ( formatted && strType ) {
			d = d.replace( _re_formatted_numeric, '' );
		}
	
		return !isNaN( parseFloat(d) ) && isFinite( d );
	};
	
	
	// A string without HTML in it can be considered to be HTML still
	var _isHtml = function ( d ) {
		return _empty( d ) || typeof d === 'string';
	};
	
	
	var _htmlNumeric = function ( d, decimalPoint, formatted ) {
		if ( _empty( d ) ) {
			return true;
		}
	
		var html = _isHtml( d );
		return ! html ?
			null :
			_isNumber( _stripHtml( d ), decimalPoint, formatted ) ?
				true :
				null;
	};
	
	
	var _pluck = function ( a, prop, prop2 ) {
		var out = [];
		var i=0, ien=a.length;
	
		// Could have the test in the loop for slightly smaller code, but speed
		// is essential here
		if ( prop2 !== undefined ) {
			for ( ; i<ien ; i++ ) {
				if ( a[i] && a[i][ prop ] ) {
					out.push( a[i][ prop ][ prop2 ] );
				}
			}
		}
		else {
			for ( ; i<ien ; i++ ) {
				if ( a[i] ) {
					out.push( a[i][ prop ] );
				}
			}
		}
	
		return out;
	};
	
	
	// Basically the same as _pluck, but rather than looping over `a` we use `order`
	// as the indexes to pick from `a`
	var _pluck_order = function ( a, order, prop, prop2 )
	{
		var out = [];
		var i=0, ien=order.length;
	
		// Could have the test in the loop for slightly smaller code, but speed
		// is essential here
		if ( prop2 !== undefined ) {
			for ( ; i<ien ; i++ ) {
				if ( a[ order[i] ][ prop ] ) {
					out.push( a[ order[i] ][ prop ][ prop2 ] );
				}
			}
		}
		else {
			for ( ; i<ien ; i++ ) {
				out.push( a[ order[i] ][ prop ] );
			}
		}
	
		return out;
	};
	
	
	var _range = function ( len, start )
	{
		var out = [];
		var end;
	
		if ( start === undefined ) {
			start = 0;
			end = len;
		}
		else {
			end = start;
			start = len;
		}
	
		for ( var i=start ; i<end ; i++ ) {
			out.push( i );
		}
	
		return out;
	};
	
	
	var _removeEmpty = function ( a )
	{
		var out = [];
	
		for ( var i=0, ien=a.length ; i<ien ; i++ ) {
			if ( a[i] ) { // careful - will remove all falsy values!
				out.push( a[i] );
			}
		}
	
		return out;
	};
	
	
	var _stripHtml = function ( d ) {
		return d.replace( _re_html, '' );
	};
	
	
	/**
	 * Determine if all values in the array are unique. This means we can short
	 * cut the _unique method at the cost of a single loop. A sorted array is used
	 * to easily check the values.
	 *
	 * @param  {array} src Source array
	 * @return {boolean} true if all unique, false otherwise
	 * @ignore
	 */
	var _areAllUnique = function ( src ) {
		if ( src.length < 2 ) {
			return true;
		}
	
		var sorted = src.slice().sort();
		var last = sorted[0];
	
		for ( var i=1, ien=sorted.length ; i<ien ; i++ ) {
			if ( sorted[i] === last ) {
				return false;
			}
	
			last = sorted[i];
		}
	
		return true;
	};
	
	
	/**
	 * Find the unique elements in a source array.
	 *
	 * @param  {array} src Source array
	 * @return {array} Array of unique items
	 * @ignore
	 */
	var _unique = function ( src )
	{
		if ( _areAllUnique( src ) ) {
			return src.slice();
		}
	
		// A faster unique method is to use object keys to identify used values,
		// but this doesn't work with arrays or objects, which we must also
		// consider. See jsperf.com/compare-array-unique-versions/4 for more
		// information.
		var
			out = [],
			val,
			i, ien=src.length,
			j, k=0;
	
		again: for ( i=0 ; i<ien ; i++ ) {
			val = src[i];
	
			for ( j=0 ; j<k ; j++ ) {
				if ( out[j] === val ) {
					continue again;
				}
			}
	
			out.push( val );
			k++;
		}
	
		return out;
	};
	
	
	/**
	 * DataTables utility methods
	 * 
	 * This namespace provides helper methods that DataTables uses internally to
	 * create a DataTable, but which are not exclusively used only for DataTables.
	 * These methods can be used by extension authors to save the duplication of
	 * code.
	 *
	 *  @namespace
	 */
	DataTable.util = {
		/**
		 * Throttle the calls to a function. Arguments and context are maintained
		 * for the throttled function.
		 *
		 * @param {function} fn Function to be called
		 * @param {integer} freq Call frequency in mS
		 * @return {function} Wrapped function
		 */
		throttle: function ( fn, freq ) {
			var
				frequency = freq !== undefined ? freq : 200,
				last,
				timer;
	
			return function () {
				var
					that = this,
					now  = +new Date(),
					args = arguments;
	
				if ( last && now < last + frequency ) {
					clearTimeout( timer );
	
					timer = setTimeout( function () {
						last = undefined;
						fn.apply( that, args );
					}, frequency );
				}
				else {
					last = now;
					fn.apply( that, args );
				}
			};
		},
	
	
		/**
		 * Escape a string such that it can be used in a regular expression
		 *
		 *  @param {string} val string to escape
		 *  @returns {string} escaped string
		 */
		escapeRegex: function ( val ) {
			return val.replace( _re_escape_regex, '\\$1' );
		}
	};
	
	
	
	/**
	 * Create a mapping object that allows camel case parameters to be looked up
	 * for their Hungarian counterparts. The mapping is stored in a private
	 * parameter called `_hungarianMap` which can be accessed on the source object.
	 *  @param {object} o
	 *  @memberof DataTable#oApi
	 */
	function _fnHungarianMap ( o )
	{
		var
			hungarian = 'a aa ai ao as b fn i m o s ',
			match,
			newKey,
			map = {};
	
		$.each( o, function (key, val) {
			match = key.match(/^([^A-Z]+?)([A-Z])/);
	
			if ( match && hungarian.indexOf(match[1]+' ') !== -1 )
			{
				newKey = key.replace( match[0], match[2].toLowerCase() );
				map[ newKey ] = key;
	
				if ( match[1] === 'o' )
				{
					_fnHungarianMap( o[key] );
				}
			}
		} );
	
		o._hungarianMap = map;
	}
	
	
	/**
	 * Convert from camel case parameters to Hungarian, based on a Hungarian map
	 * created by _fnHungarianMap.
	 *  @param {object} src The model object which holds all parameters that can be
	 *    mapped.
	 *  @param {object} user The object to convert from camel case to Hungarian.
	 *  @param {boolean} force When set to `true`, properties which already have a
	 *    Hungarian value in the `user` object will be overwritten. Otherwise they
	 *    won't be.
	 *  @memberof DataTable#oApi
	 */
	function _fnCamelToHungarian ( src, user, force )
	{
		if ( ! src._hungarianMap ) {
			_fnHungarianMap( src );
		}
	
		var hungarianKey;
	
		$.each( user, function (key, val) {
			hungarianKey = src._hungarianMap[ key ];
	
			if ( hungarianKey !== undefined && (force || user[hungarianKey] === undefined) )
			{
				// For objects, we need to buzz down into the object to copy parameters
				if ( hungarianKey.charAt(0) === 'o' )
				{
					// Copy the camelCase options over to the hungarian
					if ( ! user[ hungarianKey ] ) {
						user[ hungarianKey ] = {};
					}
					$.extend( true, user[hungarianKey], user[key] );
	
					_fnCamelToHungarian( src[hungarianKey], user[hungarianKey], force );
				}
				else {
					user[hungarianKey] = user[ key ];
				}
			}
		} );
	}
	
	
	/**
	 * Language compatibility - when certain options are given, and others aren't, we
	 * need to duplicate the values over, in order to provide backwards compatibility
	 * with older language files.
	 *  @param {object} oSettings dataTables settings object
	 *  @memberof DataTable#oApi
	 */
	function _fnLanguageCompat( lang )
	{
		// Note the use of the Hungarian notation for the parameters in this method as
		// this is called after the mapping of camelCase to Hungarian
		var defaults = DataTable.defaults.oLanguage;
	
		// Default mapping
		var defaultDecimal = defaults.sDecimal;
		if ( defaultDecimal ) {
			_addNumericSort( defaultDecimal );
		}
	
		if ( lang ) {
			var zeroRecords = lang.sZeroRecords;
	
			// Backwards compatibility - if there is no sEmptyTable given, then use the same as
			// sZeroRecords - assuming that is given.
			if ( ! lang.sEmptyTable && zeroRecords &&
				defaults.sEmptyTable === "No data available in table" )
			{
				_fnMap( lang, lang, 'sZeroRecords', 'sEmptyTable' );
			}
	
			// Likewise with loading records
			if ( ! lang.sLoadingRecords && zeroRecords &&
				defaults.sLoadingRecords === "Loading..." )
			{
				_fnMap( lang, lang, 'sZeroRecords', 'sLoadingRecords' );
			}
	
			// Old parameter name of the thousands separator mapped onto the new
			if ( lang.sInfoThousands ) {
				lang.sThousands = lang.sInfoThousands;
			}
	
			var decimal = lang.sDecimal;
			if ( decimal && defaultDecimal !== decimal ) {
				_addNumericSort( decimal );
			}
		}
	}
	
	
	/**
	 * Map one parameter onto another
	 *  @param {object} o Object to map
	 *  @param {*} knew The new parameter name
	 *  @param {*} old The old parameter name
	 */
	var _fnCompatMap = function ( o, knew, old ) {
		if ( o[ knew ] !== undefined ) {
			o[ old ] = o[ knew ];
		}
	};
	
	
	/**
	 * Provide backwards compatibility for the main DT options. Note that the new
	 * options are mapped onto the old parameters, so this is an external interface
	 * change only.
	 *  @param {object} init Object to map
	 */
	function _fnCompatOpts ( init )
	{
		_fnCompatMap( init, 'ordering',      'bSort' );
		_fnCompatMap( init, 'orderMulti',    'bSortMulti' );
		_fnCompatMap( init, 'orderClasses',  'bSortClasses' );
		_fnCompatMap( init, 'orderCellsTop', 'bSortCellsTop' );
		_fnCompatMap( init, 'order',         'aaSorting' );
		_fnCompatMap( init, 'orderFixed',    'aaSortingFixed' );
		_fnCompatMap( init, 'paging',        'bPaginate' );
		_fnCompatMap( init, 'pagingType',    'sPaginationType' );
		_fnCompatMap( init, 'pageLength',    'iDisplayLength' );
		_fnCompatMap( init, 'searching',     'bFilter' );
	
		// Boolean initialisation of x-scrolling
		if ( typeof init.sScrollX === 'boolean' ) {
			init.sScrollX = init.sScrollX ? '100%' : '';
		}
		if ( typeof init.scrollX === 'boolean' ) {
			init.scrollX = init.scrollX ? '100%' : '';
		}
	
		// Column search objects are in an array, so it needs to be converted
		// element by element
		var searchCols = init.aoSearchCols;
	
		if ( searchCols ) {
			for ( var i=0, ien=searchCols.length ; i<ien ; i++ ) {
				if ( searchCols[i] ) {
					_fnCamelToHungarian( DataTable.models.oSearch, searchCols[i] );
				}
			}
		}
	}
	
	
	/**
	 * Provide backwards compatibility for column options. Note that the new options
	 * are mapped onto the old parameters, so this is an external interface change
	 * only.
	 *  @param {object} init Object to map
	 */
	function _fnCompatCols ( init )
	{
		_fnCompatMap( init, 'orderable',     'bSortable' );
		_fnCompatMap( init, 'orderData',     'aDataSort' );
		_fnCompatMap( init, 'orderSequence', 'asSorting' );
		_fnCompatMap( init, 'orderDataType', 'sortDataType' );
	
		// orderData can be given as an integer
		var dataSort = init.aDataSort;
		if ( typeof dataSort === 'number' && ! $.isArray( dataSort ) ) {
			init.aDataSort = [ dataSort ];
		}
	}
	
	
	/**
	 * Browser feature detection for capabilities, quirks
	 *  @param {object} settings dataTables settings object
	 *  @memberof DataTable#oApi
	 */
	function _fnBrowserDetect( settings )
	{
		// We don't need to do this every time DataTables is constructed, the values
		// calculated are specific to the browser and OS configuration which we
		// don't expect to change between initialisations
		if ( ! DataTable.__browser ) {
			var browser = {};
			DataTable.__browser = browser;
	
			// Scrolling feature / quirks detection
			var n = $('<div/>')
				.css( {
					position: 'fixed',
					top: 0,
					left: $(window).scrollLeft()*-1, // allow for scrolling
					height: 1,
					width: 1,
					overflow: 'hidden'
				} )
				.append(
					$('<div/>')
						.css( {
							position: 'absolute',
							top: 1,
							left: 1,
							width: 100,
							overflow: 'scroll'
						} )
						.append(
							$('<div/>')
								.css( {
									width: '100%',
									height: 10
								} )
						)
				)
				.appendTo( 'body' );
	
			var outer = n.children();
			var inner = outer.children();
	
			// Numbers below, in order, are:
			// inner.offsetWidth, inner.clientWidth, outer.offsetWidth, outer.clientWidth
			//
			// IE6 XP:                           100 100 100  83
			// IE7 Vista:                        100 100 100  83
			// IE 8+ Windows:                     83  83 100  83
			// Evergreen Windows:                 83  83 100  83
			// Evergreen Mac with scrollbars:     85  85 100  85
			// Evergreen Mac without scrollbars: 100 100 100 100
	
			// Get scrollbar width
			browser.barWidth = outer[0].offsetWidth - outer[0].clientWidth;
	
			// IE6/7 will oversize a width 100% element inside a scrolling element, to
			// include the width of the scrollbar, while other browsers ensure the inner
			// element is contained without forcing scrolling
			browser.bScrollOversize = inner[0].offsetWidth === 100 && outer[0].clientWidth !== 100;
	
			// In rtl text layout, some browsers (most, but not all) will place the
			// scrollbar on the left, rather than the right.
			browser.bScrollbarLeft = Math.round( inner.offset().left ) !== 1;
	
			// IE8- don't provide height and width for getBoundingClientRect
			browser.bBounding = n[0].getBoundingClientRect().width ? true : false;
	
			n.remove();
		}
	
		$.extend( settings.oBrowser, DataTable.__browser );
		settings.oScroll.iBarWidth = DataTable.__browser.barWidth;
	}
	
	
	/**
	 * Array.prototype reduce[Right] method, used for browsers which don't support
	 * JS 1.6. Done this way to reduce code size, since we iterate either way
	 *  @param {object} settings dataTables settings object
	 *  @memberof DataTable#oApi
	 */
	function _fnReduce ( that, fn, init, start, end, inc )
	{
		var
			i = start,
			value,
			isSet = false;
	
		if ( init !== undefined ) {
			value = init;
			isSet = true;
		}
	
		while ( i !== end ) {
			if ( ! that.hasOwnProperty(i) ) {
				continue;
			}
	
			value = isSet ?
				fn( value, that[i], i, that ) :
				that[i];
	
			isSet = true;
			i += inc;
		}
	
		return value;
	}
	
	/**
	 * Add a column to the list used for the table with default values
	 *  @param {object} oSettings dataTables settings object
	 *  @param {node} nTh The th element for this column
	 *  @memberof DataTable#oApi
	 */
	function _fnAddColumn( oSettings, nTh )
	{
		// Add column to aoColumns array
		var oDefaults = DataTable.defaults.column;
		var iCol = oSettings.aoColumns.length;
		var oCol = $.extend( {}, DataTable.models.oColumn, oDefaults, {
			"nTh": nTh ? nTh : document.createElement('th'),
			"sTitle":    oDefaults.sTitle    ? oDefaults.sTitle    : nTh ? nTh.innerHTML : '',
			"aDataSort": oDefaults.aDataSort ? oDefaults.aDataSort : [iCol],
			"mData": oDefaults.mData ? oDefaults.mData : iCol,
			idx: iCol
		} );
		oSettings.aoColumns.push( oCol );
	
		// Add search object for column specific search. Note that the `searchCols[ iCol ]`
		// passed into extend can be undefined. This allows the user to give a default
		// with only some of the parameters defined, and also not give a default
		var searchCols = oSettings.aoPreSearchCols;
		searchCols[ iCol ] = $.extend( {}, DataTable.models.oSearch, searchCols[ iCol ] );
	
		// Use the default column options function to initialise classes etc
		_fnColumnOptions( oSettings, iCol, $(nTh).data() );
	}
	
	
	/**
	 * Apply options for a column
	 *  @param {object} oSettings dataTables settings object
	 *  @param {int} iCol column index to consider
	 *  @param {object} oOptions object with sType, bVisible and bSearchable etc
	 *  @memberof DataTable#oApi
	 */
	function _fnColumnOptions( oSettings, iCol, oOptions )
	{
		var oCol = oSettings.aoColumns[ iCol ];
		var oClasses = oSettings.oClasses;
		var th = $(oCol.nTh);
	
		// Try to get width information from the DOM. We can't get it from CSS
		// as we'd need to parse the CSS stylesheet. `width` option can override
		if ( ! oCol.sWidthOrig ) {
			// Width attribute
			oCol.sWidthOrig = th.attr('width') || null;
	
			// Style attribute
			var t = (th.attr('style') || '').match(/width:\s*(\d+[pxem%]+)/);
			if ( t ) {
				oCol.sWidthOrig = t[1];
			}
		}
	
		/* User specified column options */
		if ( oOptions !== undefined && oOptions !== null )
		{
			// Backwards compatibility
			_fnCompatCols( oOptions );
	
			// Map camel case parameters to their Hungarian counterparts
			_fnCamelToHungarian( DataTable.defaults.column, oOptions );
	
			/* Backwards compatibility for mDataProp */
			if ( oOptions.mDataProp !== undefined && !oOptions.mData )
			{
				oOptions.mData = oOptions.mDataProp;
			}
	
			if ( oOptions.sType )
			{
				oCol._sManualType = oOptions.sType;
			}
	
			// `class` is a reserved word in Javascript, so we need to provide
			// the ability to use a valid name for the camel case input
			if ( oOptions.className && ! oOptions.sClass )
			{
				oOptions.sClass = oOptions.className;
			}
			if ( oOptions.sClass ) {
				th.addClass( oOptions.sClass );
			}
	
			$.extend( oCol, oOptions );
			_fnMap( oCol, oOptions, "sWidth", "sWidthOrig" );
	
			/* iDataSort to be applied (backwards compatibility), but aDataSort will take
			 * priority if defined
			 */
			if ( oOptions.iDataSort !== undefined )
			{
				oCol.aDataSort = [ oOptions.iDataSort ];
			}
			_fnMap( oCol, oOptions, "aDataSort" );
		}
	
		/* Cache the data get and set functions for speed */
		var mDataSrc = oCol.mData;
		var mData = _fnGetObjectDataFn( mDataSrc );
		var mRender = oCol.mRender ? _fnGetObjectDataFn( oCol.mRender ) : null;
	
		var attrTest = function( src ) {
			return typeof src === 'string' && src.indexOf('@') !== -1;
		};
		oCol._bAttrSrc = $.isPlainObject( mDataSrc ) && (
			attrTest(mDataSrc.sort) || attrTest(mDataSrc.type) || attrTest(mDataSrc.filter)
		);
		oCol._setter = null;
	
		oCol.fnGetData = function (rowData, type, meta) {
			var innerData = mData( rowData, type, undefined, meta );
	
			return mRender && type ?
				mRender( innerData, type, rowData, meta ) :
				innerData;
		};
		oCol.fnSetData = function ( rowData, val, meta ) {
			return _fnSetObjectDataFn( mDataSrc )( rowData, val, meta );
		};
	
		// Indicate if DataTables should read DOM data as an object or array
		// Used in _fnGetRowElements
		if ( typeof mDataSrc !== 'number' ) {
			oSettings._rowReadObject = true;
		}
	
		/* Feature sorting overrides column specific when off */
		if ( !oSettings.oFeatures.bSort )
		{
			oCol.bSortable = false;
			th.addClass( oClasses.sSortableNone ); // Have to add class here as order event isn't called
		}
	
		/* Check that the class assignment is correct for sorting */
		var bAsc = $.inArray('asc', oCol.asSorting) !== -1;
		var bDesc = $.inArray('desc', oCol.asSorting) !== -1;
		if ( !oCol.bSortable || (!bAsc && !bDesc) )
		{
			oCol.sSortingClass = oClasses.sSortableNone;
			oCol.sSortingClassJUI = "";
		}
		else if ( bAsc && !bDesc )
		{
			oCol.sSortingClass = oClasses.sSortableAsc;
			oCol.sSortingClassJUI = oClasses.sSortJUIAscAllowed;
		}
		else if ( !bAsc && bDesc )
		{
			oCol.sSortingClass = oClasses.sSortableDesc;
			oCol.sSortingClassJUI = oClasses.sSortJUIDescAllowed;
		}
		else
		{
			oCol.sSortingClass = oClasses.sSortable;
			oCol.sSortingClassJUI = oClasses.sSortJUI;
		}
	}
	
	
	/**
	 * Adjust the table column widths for new data. Note: you would probably want to
	 * do a redraw after calling this function!
	 *  @param {object} settings dataTables settings object
	 *  @memberof DataTable#oApi
	 */
	function _fnAdjustColumnSizing ( settings )
	{
		/* Not interested in doing column width calculation if auto-width is disabled */
		if ( settings.oFeatures.bAutoWidth !== false )
		{
			var columns = settings.aoColumns;
	
			_fnCalculateColumnWidths( settings );
			for ( var i=0 , iLen=columns.length ; i<iLen ; i++ )
			{
				columns[i].nTh.style.width = columns[i].sWidth;
			}
		}
	
		var scroll = settings.oScroll;
		if ( scroll.sY !== '' || scroll.sX !== '')
		{
			_fnScrollDraw( settings );
		}
	
		_fnCallbackFire( settings, null, 'column-sizing', [settings] );
	}
	
	
	/**
	 * Covert the index of a visible column to the index in the data array (take account
	 * of hidden columns)
	 *  @param {object} oSettings dataTables settings object
	 *  @param {int} iMatch Visible column index to lookup
	 *  @returns {int} i the data index
	 *  @memberof DataTable#oApi
	 */
	function _fnVisibleToColumnIndex( oSettings, iMatch )
	{
		var aiVis = _fnGetColumns( oSettings, 'bVisible' );
	
		return typeof aiVis[iMatch] === 'number' ?
			aiVis[iMatch] :
			null;
	}
	
	
	/**
	 * Covert the index of an index in the data array and convert it to the visible
	 *   column index (take account of hidden columns)
	 *  @param {int} iMatch Column index to lookup
	 *  @param {object} oSettings dataTables settings object
	 *  @returns {int} i the data index
	 *  @memberof DataTable#oApi
	 */
	function _fnColumnIndexToVisible( oSettings, iMatch )
	{
		var aiVis = _fnGetColumns( oSettings, 'bVisible' );
		var iPos = $.inArray( iMatch, aiVis );
	
		return iPos !== -1 ? iPos : null;
	}
	
	
	/**
	 * Get the number of visible columns
	 *  @param {object} oSettings dataTables settings object
	 *  @returns {int} i the number of visible columns
	 *  @memberof DataTable#oApi
	 */
	function _fnVisbleColumns( oSettings )
	{
		var vis = 0;
	
		// No reduce in IE8, use a loop for now
		$.each( oSettings.aoColumns, function ( i, col ) {
			if ( col.bVisible && $(col.nTh).css('display') !== 'none' ) {
				vis++;
			}
		} );
	
		return vis;
	}
	
	
	/**
	 * Get an array of column indexes that match a given property
	 *  @param {object} oSettings dataTables settings object
	 *  @param {string} sParam Parameter in aoColumns to look for - typically
	 *    bVisible or bSearchable
	 *  @returns {array} Array of indexes with matched properties
	 *  @memberof DataTable#oApi
	 */
	function _fnGetColumns( oSettings, sParam )
	{
		var a = [];
	
		$.map( oSettings.aoColumns, function(val, i) {
			if ( val[sParam] ) {
				a.push( i );
			}
		} );
	
		return a;
	}
	
	
	/**
	 * Calculate the 'type' of a column
	 *  @param {object} settings dataTables settings object
	 *  @memberof DataTable#oApi
	 */
	function _fnColumnTypes ( settings )
	{
		var columns = settings.aoColumns;
		var data = settings.aoData;
		var types = DataTable.ext.type.detect;
		var i, ien, j, jen, k, ken;
		var col, cell, detectedType, cache;
	
		// For each column, spin over the 
		for ( i=0, ien=columns.length ; i<ien ; i++ ) {
			col = columns[i];
			cache = [];
	
			if ( ! col.sType && col._sManualType ) {
				col.sType = col._sManualType;
			}
			else if ( ! col.sType ) {
				for ( j=0, jen=types.length ; j<jen ; j++ ) {
					for ( k=0, ken=data.length ; k<ken ; k++ ) {
						// Use a cache array so we only need to get the type data
						// from the formatter once (when using multiple detectors)
						if ( cache[k] === undefined ) {
							cache[k] = _fnGetCellData( settings, k, i, 'type' );
						}
	
						detectedType = types[j]( cache[k], settings );
	
						// If null, then this type can't apply to this column, so
						// rather than testing all cells, break out. There is an
						// exception for the last type which is `html`. We need to
						// scan all rows since it is possible to mix string and HTML
						// types
						if ( ! detectedType && j !== types.length-1 ) {
							break;
						}
	
						// Only a single match is needed for html type since it is
						// bottom of the pile and very similar to string
						if ( detectedType === 'html' ) {
							break;
						}
					}
	
					// Type is valid for all data points in the column - use this
					// type
					if ( detectedType ) {
						col.sType = detectedType;
						break;
					}
				}
	
				// Fall back - if no type was detected, always use string
				if ( ! col.sType ) {
					col.sType = 'string';
				}
			}
		}
	}
	
	
	/**
	 * Take the column definitions and static columns arrays and calculate how
	 * they relate to column indexes. The callback function will then apply the
	 * definition found for a column to a suitable configuration object.
	 *  @param {object} oSettings dataTables settings object
	 *  @param {array} aoColDefs The aoColumnDefs array that is to be applied
	 *  @param {array} aoCols The aoColumns array that defines columns individually
	 *  @param {function} fn Callback function - takes two parameters, the calculated
	 *    column index and the definition for that column.
	 *  @memberof DataTable#oApi
	 */
	function _fnApplyColumnDefs( oSettings, aoColDefs, aoCols, fn )
	{
		var i, iLen, j, jLen, k, kLen, def;
		var columns = oSettings.aoColumns;
	
		// Column definitions with aTargets
		if ( aoColDefs )
		{
			/* Loop over the definitions array - loop in reverse so first instance has priority */
			for ( i=aoColDefs.length-1 ; i>=0 ; i-- )
			{
				def = aoColDefs[i];
	
				/* Each definition can target multiple columns, as it is an array */
				var aTargets = def.targets !== undefined ?
					def.targets :
					def.aTargets;
	
				if ( ! $.isArray( aTargets ) )
				{
					aTargets = [ aTargets ];
				}
	
				for ( j=0, jLen=aTargets.length ; j<jLen ; j++ )
				{
					if ( typeof aTargets[j] === 'number' && aTargets[j] >= 0 )
					{
						/* Add columns that we don't yet know about */
						while( columns.length <= aTargets[j] )
						{
							_fnAddColumn( oSettings );
						}
	
						/* Integer, basic index */
						fn( aTargets[j], def );
					}
					else if ( typeof aTargets[j] === 'number' && aTargets[j] < 0 )
					{
						/* Negative integer, right to left column counting */
						fn( columns.length+aTargets[j], def );
					}
					else if ( typeof aTargets[j] === 'string' )
					{
						/* Class name matching on TH element */
						for ( k=0, kLen=columns.length ; k<kLen ; k++ )
						{
							if ( aTargets[j] == "_all" ||
							     $(columns[k].nTh).hasClass( aTargets[j] ) )
							{
								fn( k, def );
							}
						}
					}
				}
			}
		}
	
		// Statically defined columns array
		if ( aoCols )
		{
			for ( i=0, iLen=aoCols.length ; i<iLen ; i++ )
			{
				fn( i, aoCols[i] );
			}
		}
	}
	
	/**
	 * Add a data array to the table, creating DOM node etc. This is the parallel to
	 * _fnGatherData, but for adding rows from a Javascript source, rather than a
	 * DOM source.
	 *  @param {object} oSettings dataTables settings object
	 *  @param {array} aData data array to be added
	 *  @param {node} [nTr] TR element to add to the table - optional. If not given,
	 *    DataTables will create a row automatically
	 *  @param {array} [anTds] Array of TD|TH elements for the row - must be given
	 *    if nTr is.
	 *  @returns {int} >=0 if successful (index of new aoData entry), -1 if failed
	 *  @memberof DataTable#oApi
	 */
	function _fnAddData ( oSettings, aDataIn, nTr, anTds )
	{
		/* Create the object for storing information about this new row */
		var iRow = oSettings.aoData.length;
		var oData = $.extend( true, {}, DataTable.models.oRow, {
			src: nTr ? 'dom' : 'data',
			idx: iRow
		} );
	
		oData._aData = aDataIn;
		oSettings.aoData.push( oData );
	
		/* Create the cells */
		var nTd, sThisType;
		var columns = oSettings.aoColumns;
	
		// Invalidate the column types as the new data needs to be revalidated
		for ( var i=0, iLen=columns.length ; i<iLen ; i++ )
		{
			columns[i].sType = null;
		}
	
		/* Add to the display array */
		oSettings.aiDisplayMaster.push( iRow );
	
		var id = oSettings.rowIdFn( aDataIn );
		if ( id !== undefined ) {
			oSettings.aIds[ id ] = oData;
		}
	
		/* Create the DOM information, or register it if already present */
		if ( nTr || ! oSettings.oFeatures.bDeferRender )
		{
			_fnCreateTr( oSettings, iRow, nTr, anTds );
		}
	
		return iRow;
	}
	
	
	/**
	 * Add one or more TR elements to the table. Generally we'd expect to
	 * use this for reading data from a DOM sourced table, but it could be
	 * used for an TR element. Note that if a TR is given, it is used (i.e.
	 * it is not cloned).
	 *  @param {object} settings dataTables settings object
	 *  @param {array|node|jQuery} trs The TR element(s) to add to the table
	 *  @returns {array} Array of indexes for the added rows
	 *  @memberof DataTable#oApi
	 */
	function _fnAddTr( settings, trs )
	{
		var row;
	
		// Allow an individual node to be passed in
		if ( ! (trs instanceof $) ) {
			trs = $(trs);
		}
	
		return trs.map( function (i, el) {
			row = _fnGetRowElements( settings, el );
			return _fnAddData( settings, row.data, el, row.cells );
		} );
	}
	
	
	/**
	 * Take a TR element and convert it to an index in aoData
	 *  @param {object} oSettings dataTables settings object
	 *  @param {node} n the TR element to find
	 *  @returns {int} index if the node is found, null if not
	 *  @memberof DataTable#oApi
	 */
	function _fnNodeToDataIndex( oSettings, n )
	{
		return (n._DT_RowIndex!==undefined) ? n._DT_RowIndex : null;
	}
	
	
	/**
	 * Take a TD element and convert it into a column data index (not the visible index)
	 *  @param {object} oSettings dataTables settings object
	 *  @param {int} iRow The row number the TD/TH can be found in
	 *  @param {node} n The TD/TH element to find
	 *  @returns {int} index if the node is found, -1 if not
	 *  @memberof DataTable#oApi
	 */
	function _fnNodeToColumnIndex( oSettings, iRow, n )
	{
		return $.inArray( n, oSettings.aoData[ iRow ].anCells );
	}
	
	
	/**
	 * Get the data for a given cell from the internal cache, taking into account data mapping
	 *  @param {object} settings dataTables settings object
	 *  @param {int} rowIdx aoData row id
	 *  @param {int} colIdx Column index
	 *  @param {string} type data get type ('display', 'type' 'filter' 'sort')
	 *  @returns {*} Cell data
	 *  @memberof DataTable#oApi
	 */
	function _fnGetCellData( settings, rowIdx, colIdx, type )
	{
		var draw           = settings.iDraw;
		var col            = settings.aoColumns[colIdx];
		var rowData        = settings.aoData[rowIdx]._aData;
		var defaultContent = col.sDefaultContent;
		var cellData       = col.fnGetData( rowData, type, {
			settings: settings,
			row:      rowIdx,
			col:      colIdx
		} );
	
		if ( cellData === undefined ) {
			if ( settings.iDrawError != draw && defaultContent === null ) {
				_fnLog( settings, 0, "Requested unknown parameter "+
					(typeof col.mData=='function' ? '{function}' : "'"+col.mData+"'")+
					" for row "+rowIdx+", column "+colIdx, 4 );
				settings.iDrawError = draw;
			}
			return defaultContent;
		}
	
		// When the data source is null and a specific data type is requested (i.e.
		// not the original data), we can use default column data
		if ( (cellData === rowData || cellData === null) && defaultContent !== null && type !== undefined ) {
			cellData = defaultContent;
		}
		else if ( typeof cellData === 'function' ) {
			// If the data source is a function, then we run it and use the return,
			// executing in the scope of the data object (for instances)
			return cellData.call( rowData );
		}
	
		if ( cellData === null && type == 'display' ) {
			return '';
		}
		return cellData;
	}
	
	
	/**
	 * Set the value for a specific cell, into the internal data cache
	 *  @param {object} settings dataTables settings object
	 *  @param {int} rowIdx aoData row id
	 *  @param {int} colIdx Column index
	 *  @param {*} val Value to set
	 *  @memberof DataTable#oApi
	 */
	function _fnSetCellData( settings, rowIdx, colIdx, val )
	{
		var col     = settings.aoColumns[colIdx];
		var rowData = settings.aoData[rowIdx]._aData;
	
		col.fnSetData( rowData, val, {
			settings: settings,
			row:      rowIdx,
			col:      colIdx
		}  );
	}
	
	
	// Private variable that is used to match action syntax in the data property object
	var __reArray = /\[.*?\]$/;
	var __reFn = /\(\)$/;
	
	/**
	 * Split string on periods, taking into account escaped periods
	 * @param  {string} str String to split
	 * @return {array} Split string
	 */
	function _fnSplitObjNotation( str )
	{
		return $.map( str.match(/(\\.|[^\.])+/g) || [''], function ( s ) {
			return s.replace(/\\\./g, '.');
		} );
	}
	
	
	/**
	 * Return a function that can be used to get data from a source object, taking
	 * into account the ability to use nested objects as a source
	 *  @param {string|int|function} mSource The data source for the object
	 *  @returns {function} Data get function
	 *  @memberof DataTable#oApi
	 */
	function _fnGetObjectDataFn( mSource )
	{
		if ( $.isPlainObject( mSource ) )
		{
			/* Build an object of get functions, and wrap them in a single call */
			var o = {};
			$.each( mSource, function (key, val) {
				if ( val ) {
					o[key] = _fnGetObjectDataFn( val );
				}
			} );
	
			return function (data, type, row, meta) {
				var t = o[type] || o._;
				return t !== undefined ?
					t(data, type, row, meta) :
					data;
			};
		}
		else if ( mSource === null )
		{
			/* Give an empty string for rendering / sorting etc */
			return function (data) { // type, row and meta also passed, but not used
				return data;
			};
		}
		else if ( typeof mSource === 'function' )
		{
			return function (data, type, row, meta) {
				return mSource( data, type, row, meta );
			};
		}
		else if ( typeof mSource === 'string' && (mSource.indexOf('.') !== -1 ||
			      mSource.indexOf('[') !== -1 || mSource.indexOf('(') !== -1) )
		{
			/* If there is a . in the source string then the data source is in a
			 * nested object so we loop over the data for each level to get the next
			 * level down. On each loop we test for undefined, and if found immediately
			 * return. This allows entire objects to be missing and sDefaultContent to
			 * be used if defined, rather than throwing an error
			 */
			var fetchData = function (data, type, src) {
				var arrayNotation, funcNotation, out, innerSrc;
	
				if ( src !== "" )
				{
					var a = _fnSplitObjNotation( src );
	
					for ( var i=0, iLen=a.length ; i<iLen ; i++ )
					{
						// Check if we are dealing with special notation
						arrayNotation = a[i].match(__reArray);
						funcNotation = a[i].match(__reFn);
	
						if ( arrayNotation )
						{
							// Array notation
							a[i] = a[i].replace(__reArray, '');
	
							// Condition allows simply [] to be passed in
							if ( a[i] !== "" ) {
								data = data[ a[i] ];
							}
							out = [];
	
							// Get the remainder of the nested object to get
							a.splice( 0, i+1 );
							innerSrc = a.join('.');
	
							// Traverse each entry in the array getting the properties requested
							if ( $.isArray( data ) ) {
								for ( var j=0, jLen=data.length ; j<jLen ; j++ ) {
									out.push( fetchData( data[j], type, innerSrc ) );
								}
							}
	
							// If a string is given in between the array notation indicators, that
							// is used to join the strings together, otherwise an array is returned
							var join = arrayNotation[0].substring(1, arrayNotation[0].length-1);
							data = (join==="") ? out : out.join(join);
	
							// The inner call to fetchData has already traversed through the remainder
							// of the source requested, so we exit from the loop
							break;
						}
						else if ( funcNotation )
						{
							// Function call
							a[i] = a[i].replace(__reFn, '');
							data = data[ a[i] ]();
							continue;
						}
	
						if ( data === null || data[ a[i] ] === undefined )
						{
							return undefined;
						}
						data = data[ a[i] ];
					}
				}
	
				return data;
			};
	
			return function (data, type) { // row and meta also passed, but not used
				return fetchData( data, type, mSource );
			};
		}
		else
		{
			/* Array or flat object mapping */
			return function (data, type) { // row and meta also passed, but not used
				return data[mSource];
			};
		}
	}
	
	
	/**
	 * Return a function that can be used to set data from a source object, taking
	 * into account the ability to use nested objects as a source
	 *  @param {string|int|function} mSource The data source for the object
	 *  @returns {function} Data set function
	 *  @memberof DataTable#oApi
	 */
	function _fnSetObjectDataFn( mSource )
	{
		if ( $.isPlainObject( mSource ) )
		{
			/* Unlike get, only the underscore (global) option is used for for
			 * setting data since we don't know the type here. This is why an object
			 * option is not documented for `mData` (which is read/write), but it is
			 * for `mRender` which is read only.
			 */
			return _fnSetObjectDataFn( mSource._ );
		}
		else if ( mSource === null )
		{
			/* Nothing to do when the data source is null */
			return function () {};
		}
		else if ( typeof mSource === 'function' )
		{
			return function (data, val, meta) {
				mSource( data, 'set', val, meta );
			};
		}
		else if ( typeof mSource === 'string' && (mSource.indexOf('.') !== -1 ||
			      mSource.indexOf('[') !== -1 || mSource.indexOf('(') !== -1) )
		{
			/* Like the get, we need to get data from a nested object */
			var setData = function (data, val, src) {
				var a = _fnSplitObjNotation( src ), b;
				var aLast = a[a.length-1];
				var arrayNotation, funcNotation, o, innerSrc;
	
				for ( var i=0, iLen=a.length-1 ; i<iLen ; i++ )
				{
					// Check if we are dealing with an array notation request
					arrayNotation = a[i].match(__reArray);
					funcNotation = a[i].match(__reFn);
	
					if ( arrayNotation )
					{
						a[i] = a[i].replace(__reArray, '');
						data[ a[i] ] = [];
	
						// Get the remainder of the nested object to set so we can recurse
						b = a.slice();
						b.splice( 0, i+1 );
						innerSrc = b.join('.');
	
						// Traverse each entry in the array setting the properties requested
						if ( $.isArray( val ) )
						{
							for ( var j=0, jLen=val.length ; j<jLen ; j++ )
							{
								o = {};
								setData( o, val[j], innerSrc );
								data[ a[i] ].push( o );
							}
						}
						else
						{
							// We've been asked to save data to an array, but it
							// isn't array data to be saved. Best that can be done
							// is to just save the value.
							data[ a[i] ] = val;
						}
	
						// The inner call to setData has already traversed through the remainder
						// of the source and has set the data, thus we can exit here
						return;
					}
					else if ( funcNotation )
					{
						// Function call
						a[i] = a[i].replace(__reFn, '');
						data = data[ a[i] ]( val );
					}
	
					// If the nested object doesn't currently exist - since we are
					// trying to set the value - create it
					if ( data[ a[i] ] === null || data[ a[i] ] === undefined )
					{
						data[ a[i] ] = {};
					}
					data = data[ a[i] ];
				}
	
				// Last item in the input - i.e, the actual set
				if ( aLast.match(__reFn ) )
				{
					// Function call
					data = data[ aLast.replace(__reFn, '') ]( val );
				}
				else
				{
					// If array notation is used, we just want to strip it and use the property name
					// and assign the value. If it isn't used, then we get the result we want anyway
					data[ aLast.replace(__reArray, '') ] = val;
				}
			};
	
			return function (data, val) { // meta is also passed in, but not used
				return setData( data, val, mSource );
			};
		}
		else
		{
			/* Array or flat object mapping */
			return function (data, val) { // meta is also passed in, but not used
				data[mSource] = val;
			};
		}
	}
	
	
	/**
	 * Return an array with the full table data
	 *  @param {object} oSettings dataTables settings object
	 *  @returns array {array} aData Master data array
	 *  @memberof DataTable#oApi
	 */
	function _fnGetDataMaster ( settings )
	{
		return _pluck( settings.aoData, '_aData' );
	}
	
	
	/**
	 * Nuke the table
	 *  @param {object} oSettings dataTables settings object
	 *  @memberof DataTable#oApi
	 */
	function _fnClearTable( settings )
	{
		settings.aoData.length = 0;
		settings.aiDisplayMaster.length = 0;
		settings.aiDisplay.length = 0;
		settings.aIds = {};
	}
	
	
	 /**
	 * Take an array of integers (index array) and remove a target integer (value - not
	 * the key!)
	 *  @param {array} a Index array to target
	 *  @param {int} iTarget value to find
	 *  @memberof DataTable#oApi
	 */
	function _fnDeleteIndex( a, iTarget, splice )
	{
		var iTargetIndex = -1;
	
		for ( var i=0, iLen=a.length ; i<iLen ; i++ )
		{
			if ( a[i] == iTarget )
			{
				iTargetIndex = i;
			}
			else if ( a[i] > iTarget )
			{
				a[i]--;
			}
		}
	
		if ( iTargetIndex != -1 && splice === undefined )
		{
			a.splice( iTargetIndex, 1 );
		}
	}
	
	
	/**
	 * Mark cached data as invalid such that a re-read of the data will occur when
	 * the cached data is next requested. Also update from the data source object.
	 *
	 * @param {object} settings DataTables settings object
	 * @param {int}    rowIdx   Row index to invalidate
	 * @param {string} [src]    Source to invalidate from: undefined, 'auto', 'dom'
	 *     or 'data'
	 * @param {int}    [colIdx] Column index to invalidate. If undefined the whole
	 *     row will be invalidated
	 * @memberof DataTable#oApi
	 *
	 * @todo For the modularisation of v1.11 this will need to become a callback, so
	 *   the sort and filter methods can subscribe to it. That will required
	 *   initialisation options for sorting, which is why it is not already baked in
	 */
	function _fnInvalidate( settings, rowIdx, src, colIdx )
	{
		var row = settings.aoData[ rowIdx ];
		var i, ien;
		var cellWrite = function ( cell, col ) {
			// This is very frustrating, but in IE if you just write directly
			// to innerHTML, and elements that are overwritten are GC'ed,
			// even if there is a reference to them elsewhere
			while ( cell.childNodes.length ) {
				cell.removeChild( cell.firstChild );
			}
	
			cell.innerHTML = _fnGetCellData( settings, rowIdx, col, 'display' );
		};
	
		// Are we reading last data from DOM or the data object?
		if ( src === 'dom' || ((! src || src === 'auto') && row.src === 'dom') ) {
			// Read the data from the DOM
			row._aData = _fnGetRowElements(
					settings, row, colIdx, colIdx === undefined ? undefined : row._aData
				)
				.data;
		}
		else {
			// Reading from data object, update the DOM
			var cells = row.anCells;
	
			if ( cells ) {
				if ( colIdx !== undefined ) {
					cellWrite( cells[colIdx], colIdx );
				}
				else {
					for ( i=0, ien=cells.length ; i<ien ; i++ ) {
						cellWrite( cells[i], i );
					}
				}
			}
		}
	
		// For both row and cell invalidation, the cached data for sorting and
		// filtering is nulled out
		row._aSortData = null;
		row._aFilterData = null;
	
		// Invalidate the type for a specific column (if given) or all columns since
		// the data might have changed
		var cols = settings.aoColumns;
		if ( colIdx !== undefined ) {
			cols[ colIdx ].sType = null;
		}
		else {
			for ( i=0, ien=cols.length ; i<ien ; i++ ) {
				cols[i].sType = null;
			}
	
			// Update DataTables special `DT_*` attributes for the row
			_fnRowAttributes( settings, row );
		}
	}
	
	
	/**
	 * Build a data source object from an HTML row, reading the contents of the
	 * cells that are in the row.
	 *
	 * @param {object} settings DataTables settings object
	 * @param {node|object} TR element from which to read data or existing row
	 *   object from which to re-read the data from the cells
	 * @param {int} [colIdx] Optional column index
	 * @param {array|object} [d] Data source object. If `colIdx` is given then this
	 *   parameter should also be given and will be used to write the data into.
	 *   Only the column in question will be written
	 * @returns {object} Object with two parameters: `data` the data read, in
	 *   document order, and `cells` and array of nodes (they can be useful to the
	 *   caller, so rather than needing a second traversal to get them, just return
	 *   them from here).
	 * @memberof DataTable#oApi
	 */
	function _fnGetRowElements( settings, row, colIdx, d )
	{
		var
			tds = [],
			td = row.firstChild,
			name, col, o, i=0, contents,
			columns = settings.aoColumns,
			objectRead = settings._rowReadObject;
	
		// Allow the data object to be passed in, or construct
		d = d !== undefined ?
			d :
			objectRead ?
				{} :
				[];
	
		var attr = function ( str, td  ) {
			if ( typeof str === 'string' ) {
				var idx = str.indexOf('@');
	
				if ( idx !== -1 ) {
					var attr = str.substring( idx+1 );
					var setter = _fnSetObjectDataFn( str );
					setter( d, td.getAttribute( attr ) );
				}
			}
		};
	
		// Read data from a cell and store into the data object
		var cellProcess = function ( cell ) {
			if ( colIdx === undefined || colIdx === i ) {
				col = columns[i];
				contents = $.trim(cell.innerHTML);
	
				if ( col && col._bAttrSrc ) {
					var setter = _fnSetObjectDataFn( col.mData._ );
					setter( d, contents );
	
					attr( col.mData.sort, cell );
					attr( col.mData.type, cell );
					attr( col.mData.filter, cell );
				}
				else {
					// Depending on the `data` option for the columns the data can
					// be read to either an object or an array.
					if ( objectRead ) {
						if ( ! col._setter ) {
							// Cache the setter function
							col._setter = _fnSetObjectDataFn( col.mData );
						}
						col._setter( d, contents );
					}
					else {
						d[i] = contents;
					}
				}
			}
	
			i++;
		};
	
		if ( td ) {
			// `tr` element was passed in
			while ( td ) {
				name = td.nodeName.toUpperCase();
	
				if ( name == "TD" || name == "TH" ) {
					cellProcess( td );
					tds.push( td );
				}
	
				td = td.nextSibling;
			}
		}
		else {
			// Existing row object passed in
			tds = row.anCells;
	
			for ( var j=0, jen=tds.length ; j<jen ; j++ ) {
				cellProcess( tds[j] );
			}
		}
	
		// Read the ID from the DOM if present
		var rowNode = row.firstChild ? row : row.nTr;
	
		if ( rowNode ) {
			var id = rowNode.getAttribute( 'id' );
	
			if ( id ) {
				_fnSetObjectDataFn( settings.rowId )( d, id );
			}
		}
	
		return {
			data: d,
			cells: tds
		};
	}
	/**
	 * Create a new TR element (and it's TD children) for a row
	 *  @param {object} oSettings dataTables settings object
	 *  @param {int} iRow Row to consider
	 *  @param {node} [nTrIn] TR element to add to the table - optional. If not given,
	 *    DataTables will create a row automatically
	 *  @param {array} [anTds] Array of TD|TH elements for the row - must be given
	 *    if nTr is.
	 *  @memberof DataTable#oApi
	 */
	function _fnCreateTr ( oSettings, iRow, nTrIn, anTds )
	{
		var
			row = oSettings.aoData[iRow],
			rowData = row._aData,
			cells = [],
			nTr, nTd, oCol,
			i, iLen;
	
		if ( row.nTr === null )
		{
			nTr = nTrIn || document.createElement('tr');
	
			row.nTr = nTr;
			row.anCells = cells;
	
			/* Use a private property on the node to allow reserve mapping from the node
			 * to the aoData array for fast look up
			 */
			nTr._DT_RowIndex = iRow;
	
			/* Special parameters can be given by the data source to be used on the row */
			_fnRowAttributes( oSettings, row );
	
			/* Process each column */
			for ( i=0, iLen=oSettings.aoColumns.length ; i<iLen ; i++ )
			{
				oCol = oSettings.aoColumns[i];
	
				nTd = nTrIn ? anTds[i] : document.createElement( oCol.sCellType );
				nTd._DT_CellIndex = {
					row: iRow,
					column: i
				};
				
				cells.push( nTd );
	
				// Need to create the HTML if new, or if a rendering function is defined
				if ( (!nTrIn || oCol.mRender || oCol.mData !== i) &&
					 (!$.isPlainObject(oCol.mData) || oCol.mData._ !== i+'.display')
				) {
					nTd.innerHTML = _fnGetCellData( oSettings, iRow, i, 'display' );
				}
	
				/* Add user defined class */
				if ( oCol.sClass )
				{
					nTd.className += ' '+oCol.sClass;
				}
	
				// Visibility - add or remove as required
				if ( oCol.bVisible && ! nTrIn )
				{
					nTr.appendChild( nTd );
				}
				else if ( ! oCol.bVisible && nTrIn )
				{
					nTd.parentNode.removeChild( nTd );
				}
	
				if ( oCol.fnCreatedCell )
				{
					oCol.fnCreatedCell.call( oSettings.oInstance,
						nTd, _fnGetCellData( oSettings, iRow, i ), rowData, iRow, i
					);
				}
			}
	
			_fnCallbackFire( oSettings, 'aoRowCreatedCallback', null, [nTr, rowData, iRow, cells] );
		}
	
		// Remove once webkit bug 131819 and Chromium bug 365619 have been resolved
		// and deployed
		row.nTr.setAttribute( 'role', 'row' );
	}
	
	
	/**
	 * Add attributes to a row based on the special `DT_*` parameters in a data
	 * source object.
	 *  @param {object} settings DataTables settings object
	 *  @param {object} DataTables row object for the row to be modified
	 *  @memberof DataTable#oApi
	 */
	function _fnRowAttributes( settings, row )
	{
		var tr = row.nTr;
		var data = row._aData;
	
		if ( tr ) {
			var id = settings.rowIdFn( data );
	
			if ( id ) {
				tr.id = id;
			}
	
			if ( data.DT_RowClass ) {
				// Remove any classes added by DT_RowClass before
				var a = data.DT_RowClass.split(' ');
				row.__rowc = row.__rowc ?
					_unique( row.__rowc.concat( a ) ) :
					a;
	
				$(tr)
					.removeClass( row.__rowc.join(' ') )
					.addClass( data.DT_RowClass );
			}
	
			if ( data.DT_RowAttr ) {
				$(tr).attr( data.DT_RowAttr );
			}
	
			if ( data.DT_RowData ) {
				$(tr).data( data.DT_RowData );
			}
		}
	}
	
	
	/**
	 * Create the HTML header for the table
	 *  @param {object} oSettings dataTables settings object
	 *  @memberof DataTable#oApi
	 */
	function _fnBuildHead( oSettings )
	{
		var i, ien, cell, row, column;
		var thead = oSettings.nTHead;
		var tfoot = oSettings.nTFoot;
		var createHeader = $('th, td', thead).length === 0;
		var classes = oSettings.oClasses;
		var columns = oSettings.aoColumns;
	
		if ( createHeader ) {
			row = $('<tr/>').appendTo( thead );
		}
	
		for ( i=0, ien=columns.length ; i<ien ; i++ ) {
			column = columns[i];
			cell = $( column.nTh ).addClass( column.sClass );
	
			if ( createHeader ) {
				cell.appendTo( row );
			}
	
			// 1.11 move into sorting
			if ( oSettings.oFeatures.bSort ) {
				cell.addClass( column.sSortingClass );
	
				if ( column.bSortable !== false ) {
					cell
						.attr( 'tabindex', oSettings.iTabIndex )
						.attr( 'aria-controls', oSettings.sTableId );
	
					_fnSortAttachListener( oSettings, column.nTh, i );
				}
			}
	
			if ( column.sTitle != cell[0].innerHTML ) {
				cell.html( column.sTitle );
			}
	
			_fnRenderer( oSettings, 'header' )(
				oSettings, cell, column, classes
			);
		}
	
		if ( createHeader ) {
			_fnDetectHeader( oSettings.aoHeader, thead );
		}
		
		/* ARIA role for the rows */
	 	$(thead).find('>tr').attr('role', 'row');
	
		/* Deal with the footer - add classes if required */
		$(thead).find('>tr>th, >tr>td').addClass( classes.sHeaderTH );
		$(tfoot).find('>tr>th, >tr>td').addClass( classes.sFooterTH );
	
		// Cache the footer cells. Note that we only take the cells from the first
		// row in the footer. If there is more than one row the user wants to
		// interact with, they need to use the table().foot() method. Note also this
		// allows cells to be used for multiple columns using colspan
		if ( tfoot !== null ) {
			var cells = oSettings.aoFooter[0];
	
			for ( i=0, ien=cells.length ; i<ien ; i++ ) {
				column = columns[i];
				column.nTf = cells[i].cell;
	
				if ( column.sClass ) {
					$(column.nTf).addClass( column.sClass );
				}
			}
		}
	}
	
	
	/**
	 * Draw the header (or footer) element based on the column visibility states. The
	 * methodology here is to use the layout array from _fnDetectHeader, modified for
	 * the instantaneous column visibility, to construct the new layout. The grid is
	 * traversed over cell at a time in a rows x columns grid fashion, although each
	 * cell insert can cover multiple elements in the grid - which is tracks using the
	 * aApplied array. Cell inserts in the grid will only occur where there isn't
	 * already a cell in that position.
	 *  @param {object} oSettings dataTables settings object
	 *  @param array {objects} aoSource Layout array from _fnDetectHeader
	 *  @param {boolean} [bIncludeHidden=false] If true then include the hidden columns in the calc,
	 *  @memberof DataTable#oApi
	 */
	function _fnDrawHead( oSettings, aoSource, bIncludeHidden )
	{
		var i, iLen, j, jLen, k, kLen, n, nLocalTr;
		var aoLocal = [];
		var aApplied = [];
		var iColumns = oSettings.aoColumns.length;
		var iRowspan, iColspan;
	
		if ( ! aoSource )
		{
			return;
		}
	
		if (  bIncludeHidden === undefined )
		{
			bIncludeHidden = false;
		}
	
		/* Make a copy of the master layout array, but without the visible columns in it */
		for ( i=0, iLen=aoSource.length ; i<iLen ; i++ )
		{
			aoLocal[i] = aoSource[i].slice();
			aoLocal[i].nTr = aoSource[i].nTr;
	
			/* Remove any columns which are currently hidden */
			for ( j=iColumns-1 ; j>=0 ; j-- )
			{
				if ( !oSettings.aoColumns[j].bVisible && !bIncludeHidden )
				{
					aoLocal[i].splice( j, 1 );
				}
			}
	
			/* Prep the applied array - it needs an element for each row */
			aApplied.push( [] );
		}
	
		for ( i=0, iLen=aoLocal.length ; i<iLen ; i++ )
		{
			nLocalTr = aoLocal[i].nTr;
	
			/* All cells are going to be replaced, so empty out the row */
			if ( nLocalTr )
			{
				while( (n = nLocalTr.firstChild) )
				{
					nLocalTr.removeChild( n );
				}
			}
	
			for ( j=0, jLen=aoLocal[i].length ; j<jLen ; j++ )
			{
				iRowspan = 1;
				iColspan = 1;
	
				/* Check to see if there is already a cell (row/colspan) covering our target
				 * insert point. If there is, then there is nothing to do.
				 */
				if ( aApplied[i][j] === undefined )
				{
					nLocalTr.appendChild( aoLocal[i][j].cell );
					aApplied[i][j] = 1;
	
					/* Expand the cell to cover as many rows as needed */
					while ( aoLocal[i+iRowspan] !== undefined &&
					        aoLocal[i][j].cell == aoLocal[i+iRowspan][j].cell )
					{
						aApplied[i+iRowspan][j] = 1;
						iRowspan++;
					}
	
					/* Expand the cell to cover as many columns as needed */
					while ( aoLocal[i][j+iColspan] !== undefined &&
					        aoLocal[i][j].cell == aoLocal[i][j+iColspan].cell )
					{
						/* Must update the applied array over the rows for the columns */
						for ( k=0 ; k<iRowspan ; k++ )
						{
							aApplied[i+k][j+iColspan] = 1;
						}
						iColspan++;
					}
	
					/* Do the actual expansion in the DOM */
					$(aoLocal[i][j].cell)
						.attr('rowspan', iRowspan)
						.attr('colspan', iColspan);
				}
			}
		}
	}
	
	
	/**
	 * Insert the required TR nodes into the table for display
	 *  @param {object} oSettings dataTables settings object
	 *  @memberof DataTable#oApi
	 */
	function _fnDraw( oSettings )
	{
		/* Provide a pre-callback function which can be used to cancel the draw is false is returned */
		var aPreDraw = _fnCallbackFire( oSettings, 'aoPreDrawCallback', 'preDraw', [oSettings] );
		if ( $.inArray( false, aPreDraw ) !== -1 )
		{
			_fnProcessingDisplay( oSettings, false );
			return;
		}
	
		var i, iLen, n;
		var anRows = [];
		var iRowCount = 0;
		var asStripeClasses = oSettings.asStripeClasses;
		var iStripes = asStripeClasses.length;
		var iOpenRows = oSettings.aoOpenRows.length;
		var oLang = oSettings.oLanguage;
		var iInitDisplayStart = oSettings.iInitDisplayStart;
		var bServerSide = _fnDataSource( oSettings ) == 'ssp';
		var aiDisplay = oSettings.aiDisplay;
	
		oSettings.bDrawing = true;
	
		/* Check and see if we have an initial draw position from state saving */
		if ( iInitDisplayStart !== undefined && iInitDisplayStart !== -1 )
		{
			oSettings._iDisplayStart = bServerSide ?
				iInitDisplayStart :
				iInitDisplayStart >= oSettings.fnRecordsDisplay() ?
					0 :
					iInitDisplayStart;
	
			oSettings.iInitDisplayStart = -1;
		}
	
		var iDisplayStart = oSettings._iDisplayStart;
		var iDisplayEnd = oSettings.fnDisplayEnd();
	
		/* Server-side processing draw intercept */
		if ( oSettings.bDeferLoading )
		{
			oSettings.bDeferLoading = false;
			oSettings.iDraw++;
			_fnProcessingDisplay( oSettings, false );
		}
		else if ( !bServerSide )
		{
			oSettings.iDraw++;
		}
		else if ( !oSettings.bDestroying && !_fnAjaxUpdate( oSettings ) )
		{
			return;
		}
	
		if ( aiDisplay.length !== 0 )
		{
			var iStart = bServerSide ? 0 : iDisplayStart;
			var iEnd = bServerSide ? oSettings.aoData.length : iDisplayEnd;
	
			for ( var j=iStart ; j<iEnd ; j++ )
			{
				var iDataIndex = aiDisplay[j];
				var aoData = oSettings.aoData[ iDataIndex ];
				if ( aoData.nTr === null )
				{
					_fnCreateTr( oSettings, iDataIndex );
				}
	
				var nRow = aoData.nTr;
	
				/* Remove the old striping classes and then add the new one */
				if ( iStripes !== 0 )
				{
					var sStripe = asStripeClasses[ iRowCount % iStripes ];
					if ( aoData._sRowStripe != sStripe )
					{
						$(nRow).removeClass( aoData._sRowStripe ).addClass( sStripe );
						aoData._sRowStripe = sStripe;
					}
				}
	
				// Row callback functions - might want to manipulate the row
				// iRowCount and j are not currently documented. Are they at all
				// useful?
				_fnCallbackFire( oSettings, 'aoRowCallback', null,
					[nRow, aoData._aData, iRowCount, j, iDataIndex] );
	
				anRows.push( nRow );
				iRowCount++;
			}
		}
		else
		{
			/* Table is empty - create a row with an empty message in it */
			var sZero = oLang.sZeroRecords;
			if ( oSettings.iDraw == 1 &&  _fnDataSource( oSettings ) == 'ajax' )
			{
				sZero = oLang.sLoadingRecords;
			}
			else if ( oLang.sEmptyTable && oSettings.fnRecordsTotal() === 0 )
			{
				sZero = oLang.sEmptyTable;
			}
	
			anRows[ 0 ] = $( '<tr/>', { 'class': iStripes ? asStripeClasses[0] : '' } )
				.append( $('<td />', {
					'valign':  'top',
					'colSpan': _fnVisbleColumns( oSettings ),
					'class':   oSettings.oClasses.sRowEmpty
				} ).html( sZero ) )[0];
		}
	
		/* Header and footer callbacks */
		_fnCallbackFire( oSettings, 'aoHeaderCallback', 'header', [ $(oSettings.nTHead).children('tr')[0],
			_fnGetDataMaster( oSettings ), iDisplayStart, iDisplayEnd, aiDisplay ] );
	
		_fnCallbackFire( oSettings, 'aoFooterCallback', 'footer', [ $(oSettings.nTFoot).children('tr')[0],
			_fnGetDataMaster( oSettings ), iDisplayStart, iDisplayEnd, aiDisplay ] );
	
		var body = $(oSettings.nTBody);
	
		body.children().detach();
		body.append( $(anRows) );
	
		/* Call all required callback functions for the end of a draw */
		_fnCallbackFire( oSettings, 'aoDrawCallback', 'draw', [oSettings] );
	
		/* Draw is complete, sorting and filtering must be as well */
		oSettings.bSorted = false;
		oSettings.bFiltered = false;
		oSettings.bDrawing = false;
	}
	
	
	/**
	 * Redraw the table - taking account of the various features which are enabled
	 *  @param {object} oSettings dataTables settings object
	 *  @param {boolean} [holdPosition] Keep the current paging position. By default
	 *    the paging is reset to the first page
	 *  @memberof DataTable#oApi
	 */
	function _fnReDraw( settings, holdPosition )
	{
		var
			features = settings.oFeatures,
			sort     = features.bSort,
			filter   = features.bFilter;
	
		if ( sort ) {
			_fnSort( settings );
		}
	
		if ( filter ) {
			_fnFilterComplete( settings, settings.oPreviousSearch );
		}
		else {
			// No filtering, so we want to just use the display master
			settings.aiDisplay = settings.aiDisplayMaster.slice();
		}
	
		if ( holdPosition !== true ) {
			settings._iDisplayStart = 0;
		}
	
		// Let any modules know about the draw hold position state (used by
		// scrolling internally)
		settings._drawHold = holdPosition;
	
		_fnDraw( settings );
	
		settings._drawHold = false;
	}
	
	
	/**
	 * Add the options to the page HTML for the table
	 *  @param {object} oSettings dataTables settings object
	 *  @memberof DataTable#oApi
	 */
	function _fnAddOptionsHtml ( oSettings )
	{
		var classes = oSettings.oClasses;
		var table = $(oSettings.nTable);
		var holding = $('<div/>').insertBefore( table ); // Holding element for speed
		var features = oSettings.oFeatures;
	
		// All DataTables are wrapped in a div
		var insert = $('<div/>', {
			id:      oSettings.sTableId+'_wrapper',
			'class': classes.sWrapper + (oSettings.nTFoot ? '' : ' '+classes.sNoFooter)
		} );
	
		oSettings.nHolding = holding[0];
		oSettings.nTableWrapper = insert[0];
		oSettings.nTableReinsertBefore = oSettings.nTable.nextSibling;
	
		/* Loop over the user set positioning and place the elements as needed */
		var aDom = oSettings.sDom.split('');
		var featureNode, cOption, nNewNode, cNext, sAttr, j;
		for ( var i=0 ; i<aDom.length ; i++ )
		{
			featureNode = null;
			cOption = aDom[i];
	
			if ( cOption == '<' )
			{
				/* New container div */
				nNewNode = $('<div/>')[0];
	
				/* Check to see if we should append an id and/or a class name to the container */
				cNext = aDom[i+1];
				if ( cNext == "'" || cNext == '"' )
				{
					sAttr = "";
					j = 2;
					while ( aDom[i+j] != cNext )
					{
						sAttr += aDom[i+j];
						j++;
					}
	
					/* Replace jQuery UI constants @todo depreciated */
					if ( sAttr == "H" )
					{
						sAttr = classes.sJUIHeader;
					}
					else if ( sAttr == "F" )
					{
						sAttr = classes.sJUIFooter;
					}
	
					/* The attribute can be in the format of "#id.class", "#id" or "class" This logic
					 * breaks the string into parts and applies them as needed
					 */
					if ( sAttr.indexOf('.') != -1 )
					{
						var aSplit = sAttr.split('.');
						nNewNode.id = aSplit[0].substr(1, aSplit[0].length-1);
						nNewNode.className = aSplit[1];
					}
					else if ( sAttr.charAt(0) == "#" )
					{
						nNewNode.id = sAttr.substr(1, sAttr.length-1);
					}
					else
					{
						nNewNode.className = sAttr;
					}
	
					i += j; /* Move along the position array */
				}
	
				insert.append( nNewNode );
				insert = $(nNewNode);
			}
			else if ( cOption == '>' )
			{
				/* End container div */
				insert = insert.parent();
			}
			// @todo Move options into their own plugins?
			else if ( cOption == 'l' && features.bPaginate && features.bLengthChange )
			{
				/* Length */
				featureNode = _fnFeatureHtmlLength( oSettings );
			}
			else if ( cOption == 'f' && features.bFilter )
			{
				/* Filter */
				featureNode = _fnFeatureHtmlFilter( oSettings );
			}
			else if ( cOption == 'r' && features.bProcessing )
			{
				/* pRocessing */
				featureNode = _fnFeatureHtmlProcessing( oSettings );
			}
			else if ( cOption == 't' )
			{
				/* Table */
				featureNode = _fnFeatureHtmlTable( oSettings );
			}
			else if ( cOption ==  'i' && features.bInfo )
			{
				/* Info */
				featureNode = _fnFeatureHtmlInfo( oSettings );
			}
			else if ( cOption == 'p' && features.bPaginate )
			{
				/* Pagination */
				featureNode = _fnFeatureHtmlPaginate( oSettings );
			}
			else if ( DataTable.ext.feature.length !== 0 )
			{
				/* Plug-in features */
				var aoFeatures = DataTable.ext.feature;
				for ( var k=0, kLen=aoFeatures.length ; k<kLen ; k++ )
				{
					if ( cOption == aoFeatures[k].cFeature )
					{
						featureNode = aoFeatures[k].fnInit( oSettings );
						break;
					}
				}
			}
	
			/* Add to the 2D features array */
			if ( featureNode )
			{
				var aanFeatures = oSettings.aanFeatures;
	
				if ( ! aanFeatures[cOption] )
				{
					aanFeatures[cOption] = [];
				}
	
				aanFeatures[cOption].push( featureNode );
				insert.append( featureNode );
			}
		}
	
		/* Built our DOM structure - replace the holding div with what we want */
		holding.replaceWith( insert );
		oSettings.nHolding = null;
	}
	
	
	/**
	 * Use the DOM source to create up an array of header cells. The idea here is to
	 * create a layout grid (array) of rows x columns, which contains a reference
	 * to the cell that that point in the grid (regardless of col/rowspan), such that
	 * any column / row could be removed and the new grid constructed
	 *  @param array {object} aLayout Array to store the calculated layout in
	 *  @param {node} nThead The header/footer element for the table
	 *  @memberof DataTable#oApi
	 */
	function _fnDetectHeader ( aLayout, nThead )
	{
		var nTrs = $(nThead).children('tr');
		var nTr, nCell;
		var i, k, l, iLen, jLen, iColShifted, iColumn, iColspan, iRowspan;
		var bUnique;
		var fnShiftCol = function ( a, i, j ) {
			var k = a[i];
	                while ( k[j] ) {
				j++;
			}
			return j;
		};
	
		aLayout.splice( 0, aLayout.length );
	
		/* We know how many rows there are in the layout - so prep it */
		for ( i=0, iLen=nTrs.length ; i<iLen ; i++ )
		{
			aLayout.push( [] );
		}
	
		/* Calculate a layout array */
		for ( i=0, iLen=nTrs.length ; i<iLen ; i++ )
		{
			nTr = nTrs[i];
			iColumn = 0;
	
			/* For every cell in the row... */
			nCell = nTr.firstChild;
			while ( nCell ) {
				if ( nCell.nodeName.toUpperCase() == "TD" ||
				     nCell.nodeName.toUpperCase() == "TH" )
				{
					/* Get the col and rowspan attributes from the DOM and sanitise them */
					iColspan = nCell.getAttribute('colspan') * 1;
					iRowspan = nCell.getAttribute('rowspan') * 1;
					iColspan = (!iColspan || iColspan===0 || iColspan===1) ? 1 : iColspan;
					iRowspan = (!iRowspan || iRowspan===0 || iRowspan===1) ? 1 : iRowspan;
	
					/* There might be colspan cells already in this row, so shift our target
					 * accordingly
					 */
					iColShifted = fnShiftCol( aLayout, i, iColumn );
	
					/* Cache calculation for unique columns */
					bUnique = iColspan === 1 ? true : false;
	
					/* If there is col / rowspan, copy the information into the layout grid */
					for ( l=0 ; l<iColspan ; l++ )
					{
						for ( k=0 ; k<iRowspan ; k++ )
						{
							aLayout[i+k][iColShifted+l] = {
								"cell": nCell,
								"unique": bUnique
							};
							aLayout[i+k].nTr = nTr;
						}
					}
				}
				nCell = nCell.nextSibling;
			}
		}
	}
	
	
	/**
	 * Get an array of unique th elements, one for each column
	 *  @param {object} oSettings dataTables settings object
	 *  @param {node} nHeader automatically detect the layout from this node - optional
	 *  @param {array} aLayout thead/tfoot layout from _fnDetectHeader - optional
	 *  @returns array {node} aReturn list of unique th's
	 *  @memberof DataTable#oApi
	 */
	function _fnGetUniqueThs ( oSettings, nHeader, aLayout )
	{
		var aReturn = [];
		if ( !aLayout )
		{
			aLayout = oSettings.aoHeader;
			if ( nHeader )
			{
				aLayout = [];
				_fnDetectHeader( aLayout, nHeader );
			}
		}
	
		for ( var i=0, iLen=aLayout.length ; i<iLen ; i++ )
		{
			for ( var j=0, jLen=aLayout[i].length ; j<jLen ; j++ )
			{
				if ( aLayout[i][j].unique &&
					 (!aReturn[j] || !oSettings.bSortCellsTop) )
				{
					aReturn[j] = aLayout[i][j].cell;
				}
			}
		}
	
		return aReturn;
	}
	
	/**
	 * Create an Ajax call based on the table's settings, taking into account that
	 * parameters can have multiple forms, and backwards compatibility.
	 *
	 * @param {object} oSettings dataTables settings object
	 * @param {array} data Data to send to the server, required by
	 *     DataTables - may be augmented by developer callbacks
	 * @param {function} fn Callback function to run when data is obtained
	 */
	function _fnBuildAjax( oSettings, data, fn )
	{
		// Compatibility with 1.9-, allow fnServerData and event to manipulate
		_fnCallbackFire( oSettings, 'aoServerParams', 'serverParams', [data] );
	
		// Convert to object based for 1.10+ if using the old array scheme which can
		// come from server-side processing or serverParams
		if ( data && $.isArray(data) ) {
			var tmp = {};
			var rbracket = /(.*?)\[\]$/;
	
			$.each( data, function (key, val) {
				var match = val.name.match(rbracket);
	
				if ( match ) {
					// Support for arrays
					var name = match[0];
	
					if ( ! tmp[ name ] ) {
						tmp[ name ] = [];
					}
					tmp[ name ].push( val.value );
				}
				else {
					tmp[val.name] = val.value;
				}
			} );
			data = tmp;
		}
	
		var ajaxData;
		var ajax = oSettings.ajax;
		var instance = oSettings.oInstance;
		var callback = function ( json ) {
			_fnCallbackFire( oSettings, null, 'xhr', [oSettings, json, oSettings.jqXHR] );
			fn( json );
		};
	
		if ( $.isPlainObject( ajax ) && ajax.data )
		{
			ajaxData = ajax.data;
	
			var newData = typeof ajaxData === 'function' ?
				ajaxData( data, oSettings ) :  // fn can manipulate data or return
				ajaxData;                      // an object object or array to merge
	
			// If the function returned something, use that alone
			data = typeof ajaxData === 'function' && newData ?
				newData :
				$.extend( true, data, newData );
	
			// Remove the data property as we've resolved it already and don't want
			// jQuery to do it again (it is restored at the end of the function)
			delete ajax.data;
		}
	
		var baseAjax = {
			"data": data,
			"success": function (json) {
				var error = json.error || json.sError;
				if ( error ) {
					_fnLog( oSettings, 0, error );
				}
	
				oSettings.json = json;
				callback( json );
			},
			"dataType": "json",
			"cache": false,
			"type": oSettings.sServerMethod,
			"error": function (xhr, error, thrown) {
				var ret = _fnCallbackFire( oSettings, null, 'xhr', [oSettings, null, oSettings.jqXHR] );
	
				if ( $.inArray( true, ret ) === -1 ) {
					if ( error == "parsererror" ) {
						_fnLog( oSettings, 0, 'Invalid JSON response', 1 );
					}
					else if ( xhr.readyState === 4 ) {
						_fnLog( oSettings, 0, 'Ajax error', 7 );
					}
				}
	
				_fnProcessingDisplay( oSettings, false );
			}
		};
	
		// Store the data submitted for the API
		oSettings.oAjaxData = data;
	
		// Allow plug-ins and external processes to modify the data
		_fnCallbackFire( oSettings, null, 'preXhr', [oSettings, data] );
	
		if ( oSettings.fnServerData )
		{
			// DataTables 1.9- compatibility
			oSettings.fnServerData.call( instance,
				oSettings.sAjaxSource,
				$.map( data, function (val, key) { // Need to convert back to 1.9 trad format
					return { name: key, value: val };
				} ),
				callback,
				oSettings
			);
		}
		else if ( oSettings.sAjaxSource || typeof ajax === 'string' )
		{
			// DataTables 1.9- compatibility
			oSettings.jqXHR = $.ajax( $.extend( baseAjax, {
				url: ajax || oSettings.sAjaxSource
			} ) );
		}
		else if ( typeof ajax === 'function' )
		{
			// Is a function - let the caller define what needs to be done
			oSettings.jqXHR = ajax.call( instance, data, callback, oSettings );
		}
		else
		{
			// Object to extend the base settings
			oSettings.jqXHR = $.ajax( $.extend( baseAjax, ajax ) );
	
			// Restore for next time around
			ajax.data = ajaxData;
		}
	}
	
	
	/**
	 * Update the table using an Ajax call
	 *  @param {object} settings dataTables settings object
	 *  @returns {boolean} Block the table drawing or not
	 *  @memberof DataTable#oApi
	 */
	function _fnAjaxUpdate( settings )
	{
		if ( settings.bAjaxDataGet ) {
			settings.iDraw++;
			_fnProcessingDisplay( settings, true );
	
			_fnBuildAjax(
				settings,
				_fnAjaxParameters( settings ),
				function(json) {
					_fnAjaxUpdateDraw( settings, json );
				}
			);
	
			return false;
		}
		return true;
	}
	
	
	/**
	 * Build up the parameters in an object needed for a server-side processing
	 * request. Note that this is basically done twice, is different ways - a modern
	 * method which is used by default in DataTables 1.10 which uses objects and
	 * arrays, or the 1.9- method with is name / value pairs. 1.9 method is used if
	 * the sAjaxSource option is used in the initialisation, or the legacyAjax
	 * option is set.
	 *  @param {object} oSettings dataTables settings object
	 *  @returns {bool} block the table drawing or not
	 *  @memberof DataTable#oApi
	 */
	function _fnAjaxParameters( settings )
	{
		var
			columns = settings.aoColumns,
			columnCount = columns.length,
			features = settings.oFeatures,
			preSearch = settings.oPreviousSearch,
			preColSearch = settings.aoPreSearchCols,
			i, data = [], dataProp, column, columnSearch,
			sort = _fnSortFlatten( settings ),
			displayStart = settings._iDisplayStart,
			displayLength = features.bPaginate !== false ?
				settings._iDisplayLength :
				-1;
	
		var param = function ( name, value ) {
			data.push( { 'name': name, 'value': value } );
		};
	
		// DataTables 1.9- compatible method
		param( 'sEcho',          settings.iDraw );
		param( 'iColumns',       columnCount );
		param( 'sColumns',       _pluck( columns, 'sName' ).join(',') );
		param( 'iDisplayStart',  displayStart );
		param( 'iDisplayLength', displayLength );
	
		// DataTables 1.10+ method
		var d = {
			draw:    settings.iDraw,
			columns: [],
			order:   [],
			start:   displayStart,
			length:  displayLength,
			search:  {
				value: preSearch.sSearch,
				regex: preSearch.bRegex
			}
		};
	
		for ( i=0 ; i<columnCount ; i++ ) {
			column = columns[i];
			columnSearch = preColSearch[i];
			dataProp = typeof column.mData=="function" ? 'function' : column.mData ;
	
			d.columns.push( {
				data:       dataProp,
				name:       column.sName,
				searchable: column.bSearchable,
				orderable:  column.bSortable,
				search:     {
					value: columnSearch.sSearch,
					regex: columnSearch.bRegex
				}
			} );
	
			param( "mDataProp_"+i, dataProp );
	
			if ( features.bFilter ) {
				param( 'sSearch_'+i,     columnSearch.sSearch );
				param( 'bRegex_'+i,      columnSearch.bRegex );
				param( 'bSearchable_'+i, column.bSearchable );
			}
	
			if ( features.bSort ) {
				param( 'bSortable_'+i, column.bSortable );
			}
		}
	
		if ( features.bFilter ) {
			param( 'sSearch', preSearch.sSearch );
			param( 'bRegex', preSearch.bRegex );
		}
	
		if ( features.bSort ) {
			$.each( sort, function ( i, val ) {
				d.order.push( { column: val.col, dir: val.dir } );
	
				param( 'iSortCol_'+i, val.col );
				param( 'sSortDir_'+i, val.dir );
			} );
	
			param( 'iSortingCols', sort.length );
		}
	
		// If the legacy.ajax parameter is null, then we automatically decide which
		// form to use, based on sAjaxSource
		var legacy = DataTable.ext.legacy.ajax;
		if ( legacy === null ) {
			return settings.sAjaxSource ? data : d;
		}
	
		// Otherwise, if legacy has been specified then we use that to decide on the
		// form
		return legacy ? data : d;
	}
	
	
	/**
	 * Data the data from the server (nuking the old) and redraw the table
	 *  @param {object} oSettings dataTables settings object
	 *  @param {object} json json data return from the server.
	 *  @param {string} json.sEcho Tracking flag for DataTables to match requests
	 *  @param {int} json.iTotalRecords Number of records in the data set, not accounting for filtering
	 *  @param {int} json.iTotalDisplayRecords Number of records in the data set, accounting for filtering
	 *  @param {array} json.aaData The data to display on this page
	 *  @param {string} [json.sColumns] Column ordering (sName, comma separated)
	 *  @memberof DataTable#oApi
	 */
	function _fnAjaxUpdateDraw ( settings, json )
	{
		// v1.10 uses camelCase variables, while 1.9 uses Hungarian notation.
		// Support both
		var compat = function ( old, modern ) {
			return json[old] !== undefined ? json[old] : json[modern];
		};
	
		var data = _fnAjaxDataSrc( settings, json );
		var draw            = compat( 'sEcho',                'draw' );
		var recordsTotal    = compat( 'iTotalRecords',        'recordsTotal' );
		var recordsFiltered = compat( 'iTotalDisplayRecords', 'recordsFiltered' );
	
		if ( draw ) {
			// Protect against out of sequence returns
			if ( draw*1 < settings.iDraw ) {
				return;
			}
			settings.iDraw = draw * 1;
		}
	
		_fnClearTable( settings );
		settings._iRecordsTotal   = parseInt(recordsTotal, 10);
		settings._iRecordsDisplay = parseInt(recordsFiltered, 10);
	
		for ( var i=0, ien=data.length ; i<ien ; i++ ) {
			_fnAddData( settings, data[i] );
		}
		settings.aiDisplay = settings.aiDisplayMaster.slice();
	
		settings.bAjaxDataGet = false;
		_fnDraw( settings );
	
		if ( ! settings._bInitComplete ) {
			_fnInitComplete( settings, json );
		}
	
		settings.bAjaxDataGet = true;
		_fnProcessingDisplay( settings, false );
	}
	
	
	/**
	 * Get the data from the JSON data source to use for drawing a table. Using
	 * `_fnGetObjectDataFn` allows the data to be sourced from a property of the
	 * source object, or from a processing function.
	 *  @param {object} oSettings dataTables settings object
	 *  @param  {object} json Data source object / array from the server
	 *  @return {array} Array of data to use
	 */
	function _fnAjaxDataSrc ( oSettings, json )
	{
		var dataSrc = $.isPlainObject( oSettings.ajax ) && oSettings.ajax.dataSrc !== undefined ?
			oSettings.ajax.dataSrc :
			oSettings.sAjaxDataProp; // Compatibility with 1.9-.
	
		// Compatibility with 1.9-. In order to read from aaData, check if the
		// default has been changed, if not, check for aaData
		if ( dataSrc === 'data' ) {
			return json.aaData || json[dataSrc];
		}
	
		return dataSrc !== "" ?
			_fnGetObjectDataFn( dataSrc )( json ) :
			json;
	}
	
	/**
	 * Generate the node required for filtering text
	 *  @returns {node} Filter control element
	 *  @param {object} oSettings dataTables settings object
	 *  @memberof DataTable#oApi
	 */
	function _fnFeatureHtmlFilter ( settings )
	{
		var classes = settings.oClasses;
		var tableId = settings.sTableId;
		var language = settings.oLanguage;
		var previousSearch = settings.oPreviousSearch;
		var features = settings.aanFeatures;
		var input = '<input type="search" class="'+classes.sFilterInput+'"/>';
	
		var str = language.sSearch;
		str = str.match(/_INPUT_/) ?
			str.replace('_INPUT_', input) :
			str+input;
	
		var filter = $('<div/>', {
				'id': ! features.f ? tableId+'_filter' : null,
				'class': classes.sFilter
			} )
			.append( $('<label/>' ).append( str ) );
	
		var searchFn = function() {
			/* Update all other filter input elements for the new display */
			var n = features.f;
			var val = !this.value ? "" : this.value; // mental IE8 fix :-(
	
			/* Now do the filter */
			if ( val != previousSearch.sSearch ) {
				_fnFilterComplete( settings, {
					"sSearch": val,
					"bRegex": previousSearch.bRegex,
					"bSmart": previousSearch.bSmart ,
					"bCaseInsensitive": previousSearch.bCaseInsensitive
				} );
	
				// Need to redraw, without resorting
				settings._iDisplayStart = 0;
				_fnDraw( settings );
			}
		};
	
		var searchDelay = settings.searchDelay !== null ?
			settings.searchDelay :
			_fnDataSource( settings ) === 'ssp' ?
				400 :
				0;
	
		var jqFilter = $('input', filter)
			.val( previousSearch.sSearch )
			.attr( 'placeholder', language.sSearchPlaceholder )
			.on(
				'keyup.DT search.DT input.DT paste.DT cut.DT',
				searchDelay ?
					_fnThrottle( searchFn, searchDelay ) :
					searchFn
			)
			.on( 'keypress.DT', function(e) {
				/* Prevent form submission */
				if ( e.keyCode == 13 ) {
					return false;
				}
			} )
			.attr('aria-controls', tableId);
	
		// Update the input elements whenever the table is filtered
		$(settings.nTable).on( 'search.dt.DT', function ( ev, s ) {
			if ( settings === s ) {
				// IE9 throws an 'unknown error' if document.activeElement is used
				// inside an iframe or frame...
				try {
					if ( jqFilter[0] !== document.activeElement ) {
						jqFilter.val( previousSearch.sSearch );
					}
				}
				catch ( e ) {}
			}
		} );
	
		return filter[0];
	}
	
	
	/**
	 * Filter the table using both the global filter and column based filtering
	 *  @param {object} oSettings dataTables settings object
	 *  @param {object} oSearch search information
	 *  @param {int} [iForce] force a research of the master array (1) or not (undefined or 0)
	 *  @memberof DataTable#oApi
	 */
	function _fnFilterComplete ( oSettings, oInput, iForce )
	{
		var oPrevSearch = oSettings.oPreviousSearch;
		var aoPrevSearch = oSettings.aoPreSearchCols;
		var fnSaveFilter = function ( oFilter ) {
			/* Save the filtering values */
			oPrevSearch.sSearch = oFilter.sSearch;
			oPrevSearch.bRegex = oFilter.bRegex;
			oPrevSearch.bSmart = oFilter.bSmart;
			oPrevSearch.bCaseInsensitive = oFilter.bCaseInsensitive;
		};
		var fnRegex = function ( o ) {
			// Backwards compatibility with the bEscapeRegex option
			return o.bEscapeRegex !== undefined ? !o.bEscapeRegex : o.bRegex;
		};
	
		// Resolve any column types that are unknown due to addition or invalidation
		// @todo As per sort - can this be moved into an event handler?
		_fnColumnTypes( oSettings );
	
		/* In server-side processing all filtering is done by the server, so no point hanging around here */
		if ( _fnDataSource( oSettings ) != 'ssp' )
		{
			/* Global filter */
			_fnFilter( oSettings, oInput.sSearch, iForce, fnRegex(oInput), oInput.bSmart, oInput.bCaseInsensitive );
			fnSaveFilter( oInput );
	
			/* Now do the individual column filter */
			for ( var i=0 ; i<aoPrevSearch.length ; i++ )
			{
				_fnFilterColumn( oSettings, aoPrevSearch[i].sSearch, i, fnRegex(aoPrevSearch[i]),
					aoPrevSearch[i].bSmart, aoPrevSearch[i].bCaseInsensitive );
			}
	
			/* Custom filtering */
			_fnFilterCustom( oSettings );
		}
		else
		{
			fnSaveFilter( oInput );
		}
	
		/* Tell the draw function we have been filtering */
		oSettings.bFiltered = true;
		_fnCallbackFire( oSettings, null, 'search', [oSettings] );
	}
	
	
	/**
	 * Apply custom filtering functions
	 *  @param {object} oSettings dataTables settings object
	 *  @memberof DataTable#oApi
	 */
	function _fnFilterCustom( settings )
	{
		var filters = DataTable.ext.search;
		var displayRows = settings.aiDisplay;
		var row, rowIdx;
	
		for ( var i=0, ien=filters.length ; i<ien ; i++ ) {
			var rows = [];
	
			// Loop over each row and see if it should be included
			for ( var j=0, jen=displayRows.length ; j<jen ; j++ ) {
				rowIdx = displayRows[ j ];
				row = settings.aoData[ rowIdx ];
	
				if ( filters[i]( settings, row._aFilterData, rowIdx, row._aData, j ) ) {
					rows.push( rowIdx );
				}
			}
	
			// So the array reference doesn't break set the results into the
			// existing array
			displayRows.length = 0;
			$.merge( displayRows, rows );
		}
	}
	
	
	/**
	 * Filter the table on a per-column basis
	 *  @param {object} oSettings dataTables settings object
	 *  @param {string} sInput string to filter on
	 *  @param {int} iColumn column to filter
	 *  @param {bool} bRegex treat search string as a regular expression or not
	 *  @param {bool} bSmart use smart filtering or not
	 *  @param {bool} bCaseInsensitive Do case insenstive matching or not
	 *  @memberof DataTable#oApi
	 */
	function _fnFilterColumn ( settings, searchStr, colIdx, regex, smart, caseInsensitive )
	{
		if ( searchStr === '' ) {
			return;
		}
	
		var data;
		var out = [];
		var display = settings.aiDisplay;
		var rpSearch = _fnFilterCreateSearch( searchStr, regex, smart, caseInsensitive );
	
		for ( var i=0 ; i<display.length ; i++ ) {
			data = settings.aoData[ display[i] ]._aFilterData[ colIdx ];
	
			if ( rpSearch.test( data ) ) {
				out.push( display[i] );
			}
		}
	
		settings.aiDisplay = out;
	}
	
	
	/**
	 * Filter the data table based on user input and draw the table
	 *  @param {object} settings dataTables settings object
	 *  @param {string} input string to filter on
	 *  @param {int} force optional - force a research of the master array (1) or not (undefined or 0)
	 *  @param {bool} regex treat as a regular expression or not
	 *  @param {bool} smart perform smart filtering or not
	 *  @param {bool} caseInsensitive Do case insenstive matching or not
	 *  @memberof DataTable#oApi
	 */
	function _fnFilter( settings, input, force, regex, smart, caseInsensitive )
	{
		var rpSearch = _fnFilterCreateSearch( input, regex, smart, caseInsensitive );
		var prevSearch = settings.oPreviousSearch.sSearch;
		var displayMaster = settings.aiDisplayMaster;
		var display, invalidated, i;
		var filtered = [];
	
		// Need to take account of custom filtering functions - always filter
		if ( DataTable.ext.search.length !== 0 ) {
			force = true;
		}
	
		// Check if any of the rows were invalidated
		invalidated = _fnFilterData( settings );
	
		// If the input is blank - we just want the full data set
		if ( input.length <= 0 ) {
			settings.aiDisplay = displayMaster.slice();
		}
		else {
			// New search - start from the master array
			if ( invalidated ||
				 force ||
				 prevSearch.length > input.length ||
				 input.indexOf(prevSearch) !== 0 ||
				 settings.bSorted // On resort, the display master needs to be
				                  // re-filtered since indexes will have changed
			) {
				settings.aiDisplay = displayMaster.slice();
			}
	
			// Search the display array
			display = settings.aiDisplay;
	
			for ( i=0 ; i<display.length ; i++ ) {
				if ( rpSearch.test( settings.aoData[ display[i] ]._sFilterRow ) ) {
					filtered.push( display[i] );
				}
			}
	
			settings.aiDisplay = filtered;
		}
	}
	
	
	/**
	 * Build a regular expression object suitable for searching a table
	 *  @param {string} sSearch string to search for
	 *  @param {bool} bRegex treat as a regular expression or not
	 *  @param {bool} bSmart perform smart filtering or not
	 *  @param {bool} bCaseInsensitive Do case insensitive matching or not
	 *  @returns {RegExp} constructed object
	 *  @memberof DataTable#oApi
	 */
	function _fnFilterCreateSearch( search, regex, smart, caseInsensitive )
	{
		search = regex ?
			search :
			_fnEscapeRegex( search );
		
		if ( smart ) {
			/* For smart filtering we want to allow the search to work regardless of
			 * word order. We also want double quoted text to be preserved, so word
			 * order is important - a la google. So this is what we want to
			 * generate:
			 * 
			 * ^(?=.*?\bone\b)(?=.*?\btwo three\b)(?=.*?\bfour\b).*$
			 */
			var a = $.map( search.match( /"[^"]+"|[^ ]+/g ) || [''], function ( word ) {
				if ( word.charAt(0) === '"' ) {
					var m = word.match( /^"(.*)"$/ );
					word = m ? m[1] : word;
				}
	
				return word.replace('"', '');
			} );
	
			search = '^(?=.*?'+a.join( ')(?=.*?' )+').*$';
		}
	
		return new RegExp( search, caseInsensitive ? 'i' : '' );
	}
	
	
	/**
	 * Escape a string such that it can be used in a regular expression
	 *  @param {string} sVal string to escape
	 *  @returns {string} escaped string
	 *  @memberof DataTable#oApi
	 */
	var _fnEscapeRegex = DataTable.util.escapeRegex;
	
	var __filter_div = $('<div>')[0];
	var __filter_div_textContent = __filter_div.textContent !== undefined;
	
	// Update the filtering data for each row if needed (by invalidation or first run)
	function _fnFilterData ( settings )
	{
		var columns = settings.aoColumns;
		var column;
		var i, j, ien, jen, filterData, cellData, row;
		var fomatters = DataTable.ext.type.search;
		var wasInvalidated = false;
	
		for ( i=0, ien=settings.aoData.length ; i<ien ; i++ ) {
			row = settings.aoData[i];
	
			if ( ! row._aFilterData ) {
				filterData = [];
	
				for ( j=0, jen=columns.length ; j<jen ; j++ ) {
					column = columns[j];
	
					if ( column.bSearchable ) {
						cellData = _fnGetCellData( settings, i, j, 'filter' );
	
						if ( fomatters[ column.sType ] ) {
							cellData = fomatters[ column.sType ]( cellData );
						}
	
						// Search in DataTables 1.10 is string based. In 1.11 this
						// should be altered to also allow strict type checking.
						if ( cellData === null ) {
							cellData = '';
						}
	
						if ( typeof cellData !== 'string' && cellData.toString ) {
							cellData = cellData.toString();
						}
					}
					else {
						cellData = '';
					}
	
					// If it looks like there is an HTML entity in the string,
					// attempt to decode it so sorting works as expected. Note that
					// we could use a single line of jQuery to do this, but the DOM
					// method used here is much faster http://jsperf.com/html-decode
					if ( cellData.indexOf && cellData.indexOf('&') !== -1 ) {
						__filter_div.innerHTML = cellData;
						cellData = __filter_div_textContent ?
							__filter_div.textContent :
							__filter_div.innerText;
					}
	
					if ( cellData.replace ) {
						cellData = cellData.replace(/[\r\n]/g, '');
					}
	
					filterData.push( cellData );
				}
	
				row._aFilterData = filterData;
				row._sFilterRow = filterData.join('  ');
				wasInvalidated = true;
			}
		}
	
		return wasInvalidated;
	}
	
	
	/**
	 * Convert from the internal Hungarian notation to camelCase for external
	 * interaction
	 *  @param {object} obj Object to convert
	 *  @returns {object} Inverted object
	 *  @memberof DataTable#oApi
	 */
	function _fnSearchToCamel ( obj )
	{
		return {
			search:          obj.sSearch,
			smart:           obj.bSmart,
			regex:           obj.bRegex,
			caseInsensitive: obj.bCaseInsensitive
		};
	}
	
	
	
	/**
	 * Convert from camelCase notation to the internal Hungarian. We could use the
	 * Hungarian convert function here, but this is cleaner
	 *  @param {object} obj Object to convert
	 *  @returns {object} Inverted object
	 *  @memberof DataTable#oApi
	 */
	function _fnSearchToHung ( obj )
	{
		return {
			sSearch:          obj.search,
			bSmart:           obj.smart,
			bRegex:           obj.regex,
			bCaseInsensitive: obj.caseInsensitive
		};
	}
	
	/**
	 * Generate the node required for the info display
	 *  @param {object} oSettings dataTables settings object
	 *  @returns {node} Information element
	 *  @memberof DataTable#oApi
	 */
	function _fnFeatureHtmlInfo ( settings )
	{
		var
			tid = settings.sTableId,
			nodes = settings.aanFeatures.i,
			n = $('<div/>', {
				'class': settings.oClasses.sInfo,
				'id': ! nodes ? tid+'_info' : null
			} );
	
		if ( ! nodes ) {
			// Update display on each draw
			settings.aoDrawCallback.push( {
				"fn": _fnUpdateInfo,
				"sName": "information"
			} );
	
			n
				.attr( 'role', 'status' )
				.attr( 'aria-live', 'polite' );
	
			// Table is described by our info div
			$(settings.nTable).attr( 'aria-describedby', tid+'_info' );
		}
	
		return n[0];
	}
	
	
	/**
	 * Update the information elements in the display
	 *  @param {object} settings dataTables settings object
	 *  @memberof DataTable#oApi
	 */
	function _fnUpdateInfo ( settings )
	{
		/* Show information about the table */
		var nodes = settings.aanFeatures.i;
		if ( nodes.length === 0 ) {
			return;
		}
	
		var
			lang  = settings.oLanguage,
			start = settings._iDisplayStart+1,
			end   = settings.fnDisplayEnd(),
			max   = settings.fnRecordsTotal(),
			total = settings.fnRecordsDisplay(),
			out   = total ?
				lang.sInfo :
				lang.sInfoEmpty;
	
		if ( total !== max ) {
			/* Record set after filtering */
			out += ' ' + lang.sInfoFiltered;
		}
	
		// Convert the macros
		out += lang.sInfoPostFix;
		out = _fnInfoMacros( settings, out );
	
		var callback = lang.fnInfoCallback;
		if ( callback !== null ) {
			out = callback.call( settings.oInstance,
				settings, start, end, max, total, out
			);
		}
	
		$(nodes).html( out );
	}
	
	
	function _fnInfoMacros ( settings, str )
	{
		// When infinite scrolling, we are always starting at 1. _iDisplayStart is used only
		// internally
		var
			formatter  = settings.fnFormatNumber,
			start      = settings._iDisplayStart+1,
			len        = settings._iDisplayLength,
			vis        = settings.fnRecordsDisplay(),
			all        = len === -1;
	
		return str.
			replace(/_START_/g, formatter.call( settings, start ) ).
			replace(/_END_/g,   formatter.call( settings, settings.fnDisplayEnd() ) ).
			replace(/_MAX_/g,   formatter.call( settings, settings.fnRecordsTotal() ) ).
			replace(/_TOTAL_/g, formatter.call( settings, vis ) ).
			replace(/_PAGE_/g,  formatter.call( settings, all ? 1 : Math.ceil( start / len ) ) ).
			replace(/_PAGES_/g, formatter.call( settings, all ? 1 : Math.ceil( vis / len ) ) );
	}
	
	
	
	/**
	 * Draw the table for the first time, adding all required features
	 *  @param {object} settings dataTables settings object
	 *  @memberof DataTable#oApi
	 */
	function _fnInitialise ( settings )
	{
		var i, iLen, iAjaxStart=settings.iInitDisplayStart;
		var columns = settings.aoColumns, column;
		var features = settings.oFeatures;
		var deferLoading = settings.bDeferLoading; // value modified by the draw
	
		/* Ensure that the table data is fully initialised */
		if ( ! settings.bInitialised ) {
			setTimeout( function(){ _fnInitialise( settings ); }, 200 );
			return;
		}
	
		/* Show the display HTML options */
		_fnAddOptionsHtml( settings );
	
		/* Build and draw the header / footer for the table */
		_fnBuildHead( settings );
		_fnDrawHead( settings, settings.aoHeader );
		_fnDrawHead( settings, settings.aoFooter );
	
		/* Okay to show that something is going on now */
		_fnProcessingDisplay( settings, true );
	
		/* Calculate sizes for columns */
		if ( features.bAutoWidth ) {
			_fnCalculateColumnWidths( settings );
		}
	
		for ( i=0, iLen=columns.length ; i<iLen ; i++ ) {
			column = columns[i];
	
			if ( column.sWidth ) {
				column.nTh.style.width = _fnStringToCss( column.sWidth );
			}
		}
	
		_fnCallbackFire( settings, null, 'preInit', [settings] );
	
		// If there is default sorting required - let's do it. The sort function
		// will do the drawing for us. Otherwise we draw the table regardless of the
		// Ajax source - this allows the table to look initialised for Ajax sourcing
		// data (show 'loading' message possibly)
		_fnReDraw( settings );
	
		// Server-side processing init complete is done by _fnAjaxUpdateDraw
		var dataSrc = _fnDataSource( settings );
		if ( dataSrc != 'ssp' || deferLoading ) {
			// if there is an ajax source load the data
			if ( dataSrc == 'ajax' ) {
				_fnBuildAjax( settings, [], function(json) {
					var aData = _fnAjaxDataSrc( settings, json );
	
					// Got the data - add it to the table
					for ( i=0 ; i<aData.length ; i++ ) {
						_fnAddData( settings, aData[i] );
					}
	
					// Reset the init display for cookie saving. We've already done
					// a filter, and therefore cleared it before. So we need to make
					// it appear 'fresh'
					settings.iInitDisplayStart = iAjaxStart;
	
					_fnReDraw( settings );
	
					_fnProcessingDisplay( settings, false );
					_fnInitComplete( settings, json );
				}, settings );
			}
			else {
				_fnProcessingDisplay( settings, false );
				_fnInitComplete( settings );
			}
		}
	}
	
	
	/**
	 * Draw the table for the first time, adding all required features
	 *  @param {object} oSettings dataTables settings object
	 *  @param {object} [json] JSON from the server that completed the table, if using Ajax source
	 *    with client-side processing (optional)
	 *  @memberof DataTable#oApi
	 */
	function _fnInitComplete ( settings, json )
	{
		settings._bInitComplete = true;
	
		// When data was added after the initialisation (data or Ajax) we need to
		// calculate the column sizing
		if ( json || settings.oInit.aaData ) {
			_fnAdjustColumnSizing( settings );
		}
	
		_fnCallbackFire( settings, null, 'plugin-init', [settings, json] );
		_fnCallbackFire( settings, 'aoInitComplete', 'init', [settings, json] );
	}
	
	
	function _fnLengthChange ( settings, val )
	{
		var len = parseInt( val, 10 );
		settings._iDisplayLength = len;
	
		_fnLengthOverflow( settings );
	
		// Fire length change event
		_fnCallbackFire( settings, null, 'length', [settings, len] );
	}
	
	
	/**
	 * Generate the node required for user display length changing
	 *  @param {object} settings dataTables settings object
	 *  @returns {node} Display length feature node
	 *  @memberof DataTable#oApi
	 */
	function _fnFeatureHtmlLength ( settings )
	{
		var
			classes  = settings.oClasses,
			tableId  = settings.sTableId,
			menu     = settings.aLengthMenu,
			d2       = $.isArray( menu[0] ),
			lengths  = d2 ? menu[0] : menu,
			language = d2 ? menu[1] : menu;
	
		var select = $('<select/>', {
			'name':          tableId+'_length',
			'aria-controls': tableId,
			'class':         classes.sLengthSelect
		} );
	
		for ( var i=0, ien=lengths.length ; i<ien ; i++ ) {
			select[0][ i ] = new Option(
				typeof language[i] === 'number' ?
					settings.fnFormatNumber( language[i] ) :
					language[i],
				lengths[i]
			);
		}
	
		var div = $('<div><label/></div>').addClass( classes.sLength );
		if ( ! settings.aanFeatures.l ) {
			div[0].id = tableId+'_length';
		}
	
		div.children().append(
			settings.oLanguage.sLengthMenu.replace( '_MENU_', select[0].outerHTML )
		);
	
		// Can't use `select` variable as user might provide their own and the
		// reference is broken by the use of outerHTML
		$('select', div)
			.val( settings._iDisplayLength )
			.on( 'change.DT', function(e) {
				_fnLengthChange( settings, $(this).val() );
				_fnDraw( settings );
			} );
	
		// Update node value whenever anything changes the table's length
		$(settings.nTable).on( 'length.dt.DT', function (e, s, len) {
			if ( settings === s ) {
				$('select', div).val( len );
			}
		} );
	
		return div[0];
	}
	
	
	
	/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
	 * Note that most of the paging logic is done in
	 * DataTable.ext.pager
	 */
	
	/**
	 * Generate the node required for default pagination
	 *  @param {object} oSettings dataTables settings object
	 *  @returns {node} Pagination feature node
	 *  @memberof DataTable#oApi
	 */
	function _fnFeatureHtmlPaginate ( settings )
	{
		var
			type   = settings.sPaginationType,
			plugin = DataTable.ext.pager[ type ],
			modern = typeof plugin === 'function',
			redraw = function( settings ) {
				_fnDraw( settings );
			},
			node = $('<div/>').addClass( settings.oClasses.sPaging + type )[0],
			features = settings.aanFeatures;
	
		if ( ! modern ) {
			plugin.fnInit( settings, node, redraw );
		}
	
		/* Add a draw callback for the pagination on first instance, to update the paging display */
		if ( ! features.p )
		{
			node.id = settings.sTableId+'_paginate';
	
			settings.aoDrawCallback.push( {
				"fn": function( settings ) {
					if ( modern ) {
						var
							start      = settings._iDisplayStart,
							len        = settings._iDisplayLength,
							visRecords = settings.fnRecordsDisplay(),
							all        = len === -1,
							page = all ? 0 : Math.ceil( start / len ),
							pages = all ? 1 : Math.ceil( visRecords / len ),
							buttons = plugin(page, pages),
							i, ien;
	
						for ( i=0, ien=features.p.length ; i<ien ; i++ ) {
							_fnRenderer( settings, 'pageButton' )(
								settings, features.p[i], i, buttons, page, pages
							);
						}
					}
					else {
						plugin.fnUpdate( settings, redraw );
					}
				},
				"sName": "pagination"
			} );
		}
	
		return node;
	}
	
	
	/**
	 * Alter the display settings to change the page
	 *  @param {object} settings DataTables settings object
	 *  @param {string|int} action Paging action to take: "first", "previous",
	 *    "next" or "last" or page number to jump to (integer)
	 *  @param [bool] redraw Automatically draw the update or not
	 *  @returns {bool} true page has changed, false - no change
	 *  @memberof DataTable#oApi
	 */
	function _fnPageChange ( settings, action, redraw )
	{
		var
			start     = settings._iDisplayStart,
			len       = settings._iDisplayLength,
			records   = settings.fnRecordsDisplay();
	
		if ( records === 0 || len === -1 )
		{
			start = 0;
		}
		else if ( typeof action === "number" )
		{
			start = action * len;
	
			if ( start > records )
			{
				start = 0;
			}
		}
		else if ( action == "first" )
		{
			start = 0;
		}
		else if ( action == "previous" )
		{
			start = len >= 0 ?
				start - len :
				0;
	
			if ( start < 0 )
			{
			  start = 0;
			}
		}
		else if ( action == "next" )
		{
			if ( start + len < records )
			{
				start += len;
			}
		}
		else if ( action == "last" )
		{
			start = Math.floor( (records-1) / len) * len;
		}
		else
		{
			_fnLog( settings, 0, "Unknown paging action: "+action, 5 );
		}
	
		var changed = settings._iDisplayStart !== start;
		settings._iDisplayStart = start;
	
		if ( changed ) {
			_fnCallbackFire( settings, null, 'page', [settings] );
	
			if ( redraw ) {
				_fnDraw( settings );
			}
		}
	
		return changed;
	}
	
	
	
	/**
	 * Generate the node required for the processing node
	 *  @param {object} settings dataTables settings object
	 *  @returns {node} Processing element
	 *  @memberof DataTable#oApi
	 */
	function _fnFeatureHtmlProcessing ( settings )
	{
		return $('<div/>', {
				'id': ! settings.aanFeatures.r ? settings.sTableId+'_processing' : null,
				'class': settings.oClasses.sProcessing
			} )
			.html( settings.oLanguage.sProcessing )
			.insertBefore( settings.nTable )[0];
	}
	
	
	/**
	 * Display or hide the processing indicator
	 *  @param {object} settings dataTables settings object
	 *  @param {bool} show Show the processing indicator (true) or not (false)
	 *  @memberof DataTable#oApi
	 */
	function _fnProcessingDisplay ( settings, show )
	{
		if ( settings.oFeatures.bProcessing ) {
			$(settings.aanFeatures.r).css( 'display', show ? 'block' : 'none' );
		}
	
		_fnCallbackFire( settings, null, 'processing', [settings, show] );
	}
	
	/**
	 * Add any control elements for the table - specifically scrolling
	 *  @param {object} settings dataTables settings object
	 *  @returns {node} Node to add to the DOM
	 *  @memberof DataTable#oApi
	 */
	function _fnFeatureHtmlTable ( settings )
	{
		var table = $(settings.nTable);
	
		// Add the ARIA grid role to the table
		table.attr( 'role', 'grid' );
	
		// Scrolling from here on in
		var scroll = settings.oScroll;
	
		if ( scroll.sX === '' && scroll.sY === '' ) {
			return settings.nTable;
		}
	
		var scrollX = scroll.sX;
		var scrollY = scroll.sY;
		var classes = settings.oClasses;
		var caption = table.children('caption');
		var captionSide = caption.length ? caption[0]._captionSide : null;
		var headerClone = $( table[0].cloneNode(false) );
		var footerClone = $( table[0].cloneNode(false) );
		var footer = table.children('tfoot');
		var _div = '<div/>';
		var size = function ( s ) {
			return !s ? null : _fnStringToCss( s );
		};
	
		if ( ! footer.length ) {
			footer = null;
		}
	
		/*
		 * The HTML structure that we want to generate in this function is:
		 *  div - scroller
		 *    div - scroll head
		 *      div - scroll head inner
		 *        table - scroll head table
		 *          thead - thead
		 *    div - scroll body
		 *      table - table (master table)
		 *        thead - thead clone for sizing
		 *        tbody - tbody
		 *    div - scroll foot
		 *      div - scroll foot inner
		 *        table - scroll foot table
		 *          tfoot - tfoot
		 */
		var scroller = $( _div, { 'class': classes.sScrollWrapper } )
			.append(
				$(_div, { 'class': classes.sScrollHead } )
					.css( {
						overflow: 'hidden',
						position: 'relative',
						border: 0,
						width: scrollX ? size(scrollX) : '100%'
					} )
					.append(
						$(_div, { 'class': classes.sScrollHeadInner } )
							.css( {
								'box-sizing': 'content-box',
								width: scroll.sXInner || '100%'
							} )
							.append(
								headerClone
									.removeAttr('id')
									.css( 'margin-left', 0 )
									.append( captionSide === 'top' ? caption : null )
									.append(
										table.children('thead')
									)
							)
					)
			)
			.append(
				$(_div, { 'class': classes.sScrollBody } )
					.css( {
						position: 'relative',
						overflow: 'auto',
						width: size( scrollX )
					} )
					.append( table )
			);
	
		if ( footer ) {
			scroller.append(
				$(_div, { 'class': classes.sScrollFoot } )
					.css( {
						overflow: 'hidden',
						border: 0,
						width: scrollX ? size(scrollX) : '100%'
					} )
					.append(
						$(_div, { 'class': classes.sScrollFootInner } )
							.append(
								footerClone
									.removeAttr('id')
									.css( 'margin-left', 0 )
									.append( captionSide === 'bottom' ? caption : null )
									.append(
										table.children('tfoot')
									)
							)
					)
			);
		}
	
		var children = scroller.children();
		var scrollHead = children[0];
		var scrollBody = children[1];
		var scrollFoot = footer ? children[2] : null;
	
		// When the body is scrolled, then we also want to scroll the headers
		if ( scrollX ) {
			$(scrollBody).on( 'scroll.DT', function (e) {
				var scrollLeft = this.scrollLeft;
	
				scrollHead.scrollLeft = scrollLeft;
	
				if ( footer ) {
					scrollFoot.scrollLeft = scrollLeft;
				}
			} );
		}
	
		$(scrollBody).css(
			scrollY && scroll.bCollapse ? 'max-height' : 'height', 
			scrollY
		);
	
		settings.nScrollHead = scrollHead;
		settings.nScrollBody = scrollBody;
		settings.nScrollFoot = scrollFoot;
	
		// On redraw - align columns
		settings.aoDrawCallback.push( {
			"fn": _fnScrollDraw,
			"sName": "scrolling"
		} );
	
		return scroller[0];
	}
	
	
	
	/**
	 * Update the header, footer and body tables for resizing - i.e. column
	 * alignment.
	 *
	 * Welcome to the most horrible function DataTables. The process that this
	 * function follows is basically:
	 *   1. Re-create the table inside the scrolling div
	 *   2. Take live measurements from the DOM
	 *   3. Apply the measurements to align the columns
	 *   4. Clean up
	 *
	 *  @param {object} settings dataTables settings object
	 *  @memberof DataTable#oApi
	 */
	function _fnScrollDraw ( settings )
	{
		// Given that this is such a monster function, a lot of variables are use
		// to try and keep the minimised size as small as possible
		var
			scroll         = settings.oScroll,
			scrollX        = scroll.sX,
			scrollXInner   = scroll.sXInner,
			scrollY        = scroll.sY,
			barWidth       = scroll.iBarWidth,
			divHeader      = $(settings.nScrollHead),
			divHeaderStyle = divHeader[0].style,
			divHeaderInner = divHeader.children('div'),
			divHeaderInnerStyle = divHeaderInner[0].style,
			divHeaderTable = divHeaderInner.children('table'),
			divBodyEl      = settings.nScrollBody,
			divBody        = $(divBodyEl),
			divBodyStyle   = divBodyEl.style,
			divFooter      = $(settings.nScrollFoot),
			divFooterInner = divFooter.children('div'),
			divFooterTable = divFooterInner.children('table'),
			header         = $(settings.nTHead),
			table          = $(settings.nTable),
			tableEl        = table[0],
			tableStyle     = tableEl.style,
			footer         = settings.nTFoot ? $(settings.nTFoot) : null,
			browser        = settings.oBrowser,
			ie67           = browser.bScrollOversize,
			dtHeaderCells  = _pluck( settings.aoColumns, 'nTh' ),
			headerTrgEls, footerTrgEls,
			headerSrcEls, footerSrcEls,
			headerCopy, footerCopy,
			headerWidths=[], footerWidths=[],
			headerContent=[], footerContent=[],
			idx, correction, sanityWidth,
			zeroOut = function(nSizer) {
				var style = nSizer.style;
				style.paddingTop = "0";
				style.paddingBottom = "0";
				style.borderTopWidth = "0";
				style.borderBottomWidth = "0";
				style.height = 0;
			};
	
		// If the scrollbar visibility has changed from the last draw, we need to
		// adjust the column sizes as the table width will have changed to account
		// for the scrollbar
		var scrollBarVis = divBodyEl.scrollHeight > divBodyEl.clientHeight;
		
		if ( settings.scrollBarVis !== scrollBarVis && settings.scrollBarVis !== undefined ) {
			settings.scrollBarVis = scrollBarVis;
			_fnAdjustColumnSizing( settings );
			return; // adjust column sizing will call this function again
		}
		else {
			settings.scrollBarVis = scrollBarVis;
		}
	
		/*
		 * 1. Re-create the table inside the scrolling div
		 */
	
		// Remove the old minimised thead and tfoot elements in the inner table
		table.children('thead, tfoot').remove();
	
		if ( footer ) {
			footerCopy = footer.clone().prependTo( table );
			footerTrgEls = footer.find('tr'); // the original tfoot is in its own table and must be sized
			footerSrcEls = footerCopy.find('tr');
		}
	
		// Clone the current header and footer elements and then place it into the inner table
		headerCopy = header.clone().prependTo( table );
		headerTrgEls = header.find('tr'); // original header is in its own table
		headerSrcEls = headerCopy.find('tr');
		headerCopy.find('th, td').removeAttr('tabindex');
	
	
		/*
		 * 2. Take live measurements from the DOM - do not alter the DOM itself!
		 */
	
		// Remove old sizing and apply the calculated column widths
		// Get the unique column headers in the newly created (cloned) header. We want to apply the
		// calculated sizes to this header
		if ( ! scrollX )
		{
			divBodyStyle.width = '100%';
			divHeader[0].style.width = '100%';
		}
	
		$.each( _fnGetUniqueThs( settings, headerCopy ), function ( i, el ) {
			idx = _fnVisibleToColumnIndex( settings, i );
			el.style.width = settings.aoColumns[idx].sWidth;
		} );
	
		if ( footer ) {
			_fnApplyToChildren( function(n) {
				n.style.width = "";
			}, footerSrcEls );
		}
	
		// Size the table as a whole
		sanityWidth = table.outerWidth();
		if ( scrollX === "" ) {
			// No x scrolling
			tableStyle.width = "100%";
	
			// IE7 will make the width of the table when 100% include the scrollbar
			// - which is shouldn't. When there is a scrollbar we need to take this
			// into account.
			if ( ie67 && (table.find('tbody').height() > divBodyEl.offsetHeight ||
				divBody.css('overflow-y') == "scroll")
			) {
				tableStyle.width = _fnStringToCss( table.outerWidth() - barWidth);
			}
	
			// Recalculate the sanity width
			sanityWidth = table.outerWidth();
		}
		else if ( scrollXInner !== "" ) {
			// legacy x scroll inner has been given - use it
			tableStyle.width = _fnStringToCss(scrollXInner);
	
			// Recalculate the sanity width
			sanityWidth = table.outerWidth();
		}
	
		// Hidden header should have zero height, so remove padding and borders. Then
		// set the width based on the real headers
	
		// Apply all styles in one pass
		_fnApplyToChildren( zeroOut, headerSrcEls );
	
		// Read all widths in next pass
		_fnApplyToChildren( function(nSizer) {
			headerContent.push( nSizer.innerHTML );
			headerWidths.push( _fnStringToCss( $(nSizer).css('width') ) );
		}, headerSrcEls );
	
		// Apply all widths in final pass
		_fnApplyToChildren( function(nToSize, i) {
			// Only apply widths to the DataTables detected header cells - this
			// prevents complex headers from having contradictory sizes applied
			if ( $.inArray( nToSize, dtHeaderCells ) !== -1 ) {
				nToSize.style.width = headerWidths[i];
			}
		}, headerTrgEls );
	
		$(headerSrcEls).height(0);
	
		/* Same again with the footer if we have one */
		if ( footer )
		{
			_fnApplyToChildren( zeroOut, footerSrcEls );
	
			_fnApplyToChildren( function(nSizer) {
				footerContent.push( nSizer.innerHTML );
				footerWidths.push( _fnStringToCss( $(nSizer).css('width') ) );
			}, footerSrcEls );
	
			_fnApplyToChildren( function(nToSize, i) {
				nToSize.style.width = footerWidths[i];
			}, footerTrgEls );
	
			$(footerSrcEls).height(0);
		}
	
	
		/*
		 * 3. Apply the measurements
		 */
	
		// "Hide" the header and footer that we used for the sizing. We need to keep
		// the content of the cell so that the width applied to the header and body
		// both match, but we want to hide it completely. We want to also fix their
		// width to what they currently are
		_fnApplyToChildren( function(nSizer, i) {
			nSizer.innerHTML = '<div class="dataTables_sizing">'+headerContent[i]+'</div>';
			nSizer.childNodes[0].style.height = "0";
			nSizer.childNodes[0].style.overflow = "hidden";
			nSizer.style.width = headerWidths[i];
		}, headerSrcEls );
	
		if ( footer )
		{
			_fnApplyToChildren( function(nSizer, i) {
				nSizer.innerHTML = '<div class="dataTables_sizing">'+footerContent[i]+'</div>';
				nSizer.childNodes[0].style.height = "0";
				nSizer.childNodes[0].style.overflow = "hidden";
				nSizer.style.width = footerWidths[i];
			}, footerSrcEls );
		}
	
		// Sanity check that the table is of a sensible width. If not then we are going to get
		// misalignment - try to prevent this by not allowing the table to shrink below its min width
		if ( table.outerWidth() < sanityWidth )
		{
			// The min width depends upon if we have a vertical scrollbar visible or not */
			correction = ((divBodyEl.scrollHeight > divBodyEl.offsetHeight ||
				divBody.css('overflow-y') == "scroll")) ?
					sanityWidth+barWidth :
					sanityWidth;
	
			// IE6/7 are a law unto themselves...
			if ( ie67 && (divBodyEl.scrollHeight >
				divBodyEl.offsetHeight || divBody.css('overflow-y') == "scroll")
			) {
				tableStyle.width = _fnStringToCss( correction-barWidth );
			}
	
			// And give the user a warning that we've stopped the table getting too small
			if ( scrollX === "" || scrollXInner !== "" ) {
				_fnLog( settings, 1, 'Possible column misalignment', 6 );
			}
		}
		else
		{
			correction = '100%';
		}
	
		// Apply to the container elements
		divBodyStyle.width = _fnStringToCss( correction );
		divHeaderStyle.width = _fnStringToCss( correction );
	
		if ( footer ) {
			settings.nScrollFoot.style.width = _fnStringToCss( correction );
		}
	
	
		/*
		 * 4. Clean up
		 */
		if ( ! scrollY ) {
			/* IE7< puts a vertical scrollbar in place (when it shouldn't be) due to subtracting
			 * the scrollbar height from the visible display, rather than adding it on. We need to
			 * set the height in order to sort this. Don't want to do it in any other browsers.
			 */
			if ( ie67 ) {
				divBodyStyle.height = _fnStringToCss( tableEl.offsetHeight+barWidth );
			}
		}
	
		/* Finally set the width's of the header and footer tables */
		var iOuterWidth = table.outerWidth();
		divHeaderTable[0].style.width = _fnStringToCss( iOuterWidth );
		divHeaderInnerStyle.width = _fnStringToCss( iOuterWidth );
	
		// Figure out if there are scrollbar present - if so then we need a the header and footer to
		// provide a bit more space to allow "overflow" scrolling (i.e. past the scrollbar)
		var bScrolling = table.height() > divBodyEl.clientHeight || divBody.css('overflow-y') == "scroll";
		var padding = 'padding' + (browser.bScrollbarLeft ? 'Left' : 'Right' );
		divHeaderInnerStyle[ padding ] = bScrolling ? barWidth+"px" : "0px";
	
		if ( footer ) {
			divFooterTable[0].style.width = _fnStringToCss( iOuterWidth );
			divFooterInner[0].style.width = _fnStringToCss( iOuterWidth );
			divFooterInner[0].style[padding] = bScrolling ? barWidth+"px" : "0px";
		}
	
		// Correct DOM ordering for colgroup - comes before the thead
		table.children('colgroup').insertBefore( table.children('thead') );
	
		/* Adjust the position of the header in case we loose the y-scrollbar */
		divBody.scroll();
	
		// If sorting or filtering has occurred, jump the scrolling back to the top
		// only if we aren't holding the position
		if ( (settings.bSorted || settings.bFiltered) && ! settings._drawHold ) {
			divBodyEl.scrollTop = 0;
		}
	}
	
	
	
	/**
	 * Apply a given function to the display child nodes of an element array (typically
	 * TD children of TR rows
	 *  @param {function} fn Method to apply to the objects
	 *  @param array {nodes} an1 List of elements to look through for display children
	 *  @param array {nodes} an2 Another list (identical structure to the first) - optional
	 *  @memberof DataTable#oApi
	 */
	function _fnApplyToChildren( fn, an1, an2 )
	{
		var index=0, i=0, iLen=an1.length;
		var nNode1, nNode2;
	
		while ( i < iLen ) {
			nNode1 = an1[i].firstChild;
			nNode2 = an2 ? an2[i].firstChild : null;
	
			while ( nNode1 ) {
				if ( nNode1.nodeType === 1 ) {
					if ( an2 ) {
						fn( nNode1, nNode2, index );
					}
					else {
						fn( nNode1, index );
					}
	
					index++;
				}
	
				nNode1 = nNode1.nextSibling;
				nNode2 = an2 ? nNode2.nextSibling : null;
			}
	
			i++;
		}
	}
	
	
	
	var __re_html_remove = /<.*?>/g;
	
	
	/**
	 * Calculate the width of columns for the table
	 *  @param {object} oSettings dataTables settings object
	 *  @memberof DataTable#oApi
	 */
	function _fnCalculateColumnWidths ( oSettings )
	{
		var
			table = oSettings.nTable,
			columns = oSettings.aoColumns,
			scroll = oSettings.oScroll,
			scrollY = scroll.sY,
			scrollX = scroll.sX,
			scrollXInner = scroll.sXInner,
			columnCount = columns.length,
			visibleColumns = _fnGetColumns( oSettings, 'bVisible' ),
			headerCells = $('th', oSettings.nTHead),
			tableWidthAttr = table.getAttribute('width'), // from DOM element
			tableContainer = table.parentNode,
			userInputs = false,
			i, column, columnIdx, width, outerWidth,
			browser = oSettings.oBrowser,
			ie67 = browser.bScrollOversize;
	
		var styleWidth = table.style.width;
		if ( styleWidth && styleWidth.indexOf('%') !== -1 ) {
			tableWidthAttr = styleWidth;
		}
	
		/* Convert any user input sizes into pixel sizes */
		for ( i=0 ; i<visibleColumns.length ; i++ ) {
			column = columns[ visibleColumns[i] ];
	
			if ( column.sWidth !== null ) {
				column.sWidth = _fnConvertToWidth( column.sWidthOrig, tableContainer );
	
				userInputs = true;
			}
		}
	
		/* If the number of columns in the DOM equals the number that we have to
		 * process in DataTables, then we can use the offsets that are created by
		 * the web- browser. No custom sizes can be set in order for this to happen,
		 * nor scrolling used
		 */
		if ( ie67 || ! userInputs && ! scrollX && ! scrollY &&
		     columnCount == _fnVisbleColumns( oSettings ) &&
		     columnCount == headerCells.length
		) {
			for ( i=0 ; i<columnCount ; i++ ) {
				var colIdx = _fnVisibleToColumnIndex( oSettings, i );
	
				if ( colIdx !== null ) {
					columns[ colIdx ].sWidth = _fnStringToCss( headerCells.eq(i).width() );
				}
			}
		}
		else
		{
			// Otherwise construct a single row, worst case, table with the widest
			// node in the data, assign any user defined widths, then insert it into
			// the DOM and allow the browser to do all the hard work of calculating
			// table widths
			var tmpTable = $(table).clone() // don't use cloneNode - IE8 will remove events on the main table
				.css( 'visibility', 'hidden' )
				.removeAttr( 'id' );
	
			// Clean up the table body
			tmpTable.find('tbody tr').remove();
			var tr = $('<tr/>').appendTo( tmpTable.find('tbody') );
	
			// Clone the table header and footer - we can't use the header / footer
			// from the cloned table, since if scrolling is active, the table's
			// real header and footer are contained in different table tags
			tmpTable.find('thead, tfoot').remove();
			tmpTable
				.append( $(oSettings.nTHead).clone() )
				.append( $(oSettings.nTFoot).clone() );
	
			// Remove any assigned widths from the footer (from scrolling)
			tmpTable.find('tfoot th, tfoot td').css('width', '');
	
			// Apply custom sizing to the cloned header
			headerCells = _fnGetUniqueThs( oSettings, tmpTable.find('thead')[0] );
	
			for ( i=0 ; i<visibleColumns.length ; i++ ) {
				column = columns[ visibleColumns[i] ];
	
				headerCells[i].style.width = column.sWidthOrig !== null && column.sWidthOrig !== '' ?
					_fnStringToCss( column.sWidthOrig ) :
					'';
	
				// For scrollX we need to force the column width otherwise the
				// browser will collapse it. If this width is smaller than the
				// width the column requires, then it will have no effect
				if ( column.sWidthOrig && scrollX ) {
					$( headerCells[i] ).append( $('<div/>').css( {
						width: column.sWidthOrig,
						margin: 0,
						padding: 0,
						border: 0,
						height: 1
					} ) );
				}
			}
	
			// Find the widest cell for each column and put it into the table
			if ( oSettings.aoData.length ) {
				for ( i=0 ; i<visibleColumns.length ; i++ ) {
					columnIdx = visibleColumns[i];
					column = columns[ columnIdx ];
	
					$( _fnGetWidestNode( oSettings, columnIdx ) )
						.clone( false )
						.append( column.sContentPadding )
						.appendTo( tr );
				}
			}
	
			// Tidy the temporary table - remove name attributes so there aren't
			// duplicated in the dom (radio elements for example)
			$('[name]', tmpTable).removeAttr('name');
	
			// Table has been built, attach to the document so we can work with it.
			// A holding element is used, positioned at the top of the container
			// with minimal height, so it has no effect on if the container scrolls
			// or not. Otherwise it might trigger scrolling when it actually isn't
			// needed
			var holder = $('<div/>').css( scrollX || scrollY ?
					{
						position: 'absolute',
						top: 0,
						left: 0,
						height: 1,
						right: 0,
						overflow: 'hidden'
					} :
					{}
				)
				.append( tmpTable )
				.appendTo( tableContainer );
	
			// When scrolling (X or Y) we want to set the width of the table as 
			// appropriate. However, when not scrolling leave the table width as it
			// is. This results in slightly different, but I think correct behaviour
			if ( scrollX && scrollXInner ) {
				tmpTable.width( scrollXInner );
			}
			else if ( scrollX ) {
				tmpTable.css( 'width', 'auto' );
				tmpTable.removeAttr('width');
	
				// If there is no width attribute or style, then allow the table to
				// collapse
				if ( tmpTable.width() < tableContainer.clientWidth && tableWidthAttr ) {
					tmpTable.width( tableContainer.clientWidth );
				}
			}
			else if ( scrollY ) {
				tmpTable.width( tableContainer.clientWidth );
			}
			else if ( tableWidthAttr ) {
				tmpTable.width( tableWidthAttr );
			}
	
			// Get the width of each column in the constructed table - we need to
			// know the inner width (so it can be assigned to the other table's
			// cells) and the outer width so we can calculate the full width of the
			// table. This is safe since DataTables requires a unique cell for each
			// column, but if ever a header can span multiple columns, this will
			// need to be modified.
			var total = 0;
			for ( i=0 ; i<visibleColumns.length ; i++ ) {
				var cell = $(headerCells[i]);
				var border = cell.outerWidth() - cell.width();
	
				// Use getBounding... where possible (not IE8-) because it can give
				// sub-pixel accuracy, which we then want to round up!
				var bounding = browser.bBounding ?
					Math.ceil( headerCells[i].getBoundingClientRect().width ) :
					cell.outerWidth();
	
				// Total is tracked to remove any sub-pixel errors as the outerWidth
				// of the table might not equal the total given here (IE!).
				total += bounding;
	
				// Width for each column to use
				columns[ visibleColumns[i] ].sWidth = _fnStringToCss( bounding - border );
			}
	
			table.style.width = _fnStringToCss( total );
	
			// Finished with the table - ditch it
			holder.remove();
		}
	
		// If there is a width attr, we want to attach an event listener which
		// allows the table sizing to automatically adjust when the window is
		// resized. Use the width attr rather than CSS, since we can't know if the
		// CSS is a relative value or absolute - DOM read is always px.
		if ( tableWidthAttr ) {
			table.style.width = _fnStringToCss( tableWidthAttr );
		}
	
		if ( (tableWidthAttr || scrollX) && ! oSettings._reszEvt ) {
			var bindResize = function () {
				$(window).on('resize.DT-'+oSettings.sInstance, _fnThrottle( function () {
					_fnAdjustColumnSizing( oSettings );
				} ) );
			};
	
			// IE6/7 will crash if we bind a resize event handler on page load.
			// To be removed in 1.11 which drops IE6/7 support
			if ( ie67 ) {
				setTimeout( bindResize, 1000 );
			}
			else {
				bindResize();
			}
	
			oSettings._reszEvt = true;
		}
	}
	
	
	/**
	 * Throttle the calls to a function. Arguments and context are maintained for
	 * the throttled function
	 *  @param {function} fn Function to be called
	 *  @param {int} [freq=200] call frequency in mS
	 *  @returns {function} wrapped function
	 *  @memberof DataTable#oApi
	 */
	var _fnThrottle = DataTable.util.throttle;
	
	
	/**
	 * Convert a CSS unit width to pixels (e.g. 2em)
	 *  @param {string} width width to be converted
	 *  @param {node} parent parent to get the with for (required for relative widths) - optional
	 *  @returns {int} width in pixels
	 *  @memberof DataTable#oApi
	 */
	function _fnConvertToWidth ( width, parent )
	{
		if ( ! width ) {
			return 0;
		}
	
		var n = $('<div/>')
			.css( 'width', _fnStringToCss( width ) )
			.appendTo( parent || document.body );
	
		var val = n[0].offsetWidth;
		n.remove();
	
		return val;
	}
	
	
	/**
	 * Get the widest node
	 *  @param {object} settings dataTables settings object
	 *  @param {int} colIdx column of interest
	 *  @returns {node} widest table node
	 *  @memberof DataTable#oApi
	 */
	function _fnGetWidestNode( settings, colIdx )
	{
		var idx = _fnGetMaxLenString( settings, colIdx );
		if ( idx < 0 ) {
			return null;
		}
	
		var data = settings.aoData[ idx ];
		return ! data.nTr ? // Might not have been created when deferred rendering
			$('<td/>').html( _fnGetCellData( settings, idx, colIdx, 'display' ) )[0] :
			data.anCells[ colIdx ];
	}
	
	
	/**
	 * Get the maximum strlen for each data column
	 *  @param {object} settings dataTables settings object
	 *  @param {int} colIdx column of interest
	 *  @returns {string} max string length for each column
	 *  @memberof DataTable#oApi
	 */
	function _fnGetMaxLenString( settings, colIdx )
	{
		var s, max=-1, maxIdx = -1;
	
		for ( var i=0, ien=settings.aoData.length ; i<ien ; i++ ) {
			s = _fnGetCellData( settings, i, colIdx, 'display' )+'';
			s = s.replace( __re_html_remove, '' );
			s = s.replace( /&nbsp;/g, ' ' );
	
			if ( s.length > max ) {
				max = s.length;
				maxIdx = i;
			}
		}
	
		return maxIdx;
	}
	
	
	/**
	 * Append a CSS unit (only if required) to a string
	 *  @param {string} value to css-ify
	 *  @returns {string} value with css unit
	 *  @memberof DataTable#oApi
	 */
	function _fnStringToCss( s )
	{
		if ( s === null ) {
			return '0px';
		}
	
		if ( typeof s == 'number' ) {
			return s < 0 ?
				'0px' :
				s+'px';
		}
	
		// Check it has a unit character already
		return s.match(/\d$/) ?
			s+'px' :
			s;
	}
	
	
	
	function _fnSortFlatten ( settings )
	{
		var
			i, iLen, k, kLen,
			aSort = [],
			aiOrig = [],
			aoColumns = settings.aoColumns,
			aDataSort, iCol, sType, srcCol,
			fixed = settings.aaSortingFixed,
			fixedObj = $.isPlainObject( fixed ),
			nestedSort = [],
			add = function ( a ) {
				if ( a.length && ! $.isArray( a[0] ) ) {
					// 1D array
					nestedSort.push( a );
				}
				else {
					// 2D array
					$.merge( nestedSort, a );
				}
			};
	
		// Build the sort array, with pre-fix and post-fix options if they have been
		// specified
		if ( $.isArray( fixed ) ) {
			add( fixed );
		}
	
		if ( fixedObj && fixed.pre ) {
			add( fixed.pre );
		}
	
		add( settings.aaSorting );
	
		if (fixedObj && fixed.post ) {
			add( fixed.post );
		}
	
		for ( i=0 ; i<nestedSort.length ; i++ )
		{
			srcCol = nestedSort[i][0];
			aDataSort = aoColumns[ srcCol ].aDataSort;
	
			for ( k=0, kLen=aDataSort.length ; k<kLen ; k++ )
			{
				iCol = aDataSort[k];
				sType = aoColumns[ iCol ].sType || 'string';
	
				if ( nestedSort[i]._idx === undefined ) {
					nestedSort[i]._idx = $.inArray( nestedSort[i][1], aoColumns[iCol].asSorting );
				}
	
				aSort.push( {
					src:       srcCol,
					col:       iCol,
					dir:       nestedSort[i][1],
					index:     nestedSort[i]._idx,
					type:      sType,
					formatter: DataTable.ext.type.order[ sType+"-pre" ]
				} );
			}
		}
	
		return aSort;
	}
	
	/**
	 * Change the order of the table
	 *  @param {object} oSettings dataTables settings object
	 *  @memberof DataTable#oApi
	 *  @todo This really needs split up!
	 */
	function _fnSort ( oSettings )
	{
		var
			i, ien, iLen, j, jLen, k, kLen,
			sDataType, nTh,
			aiOrig = [],
			oExtSort = DataTable.ext.type.order,
			aoData = oSettings.aoData,
			aoColumns = oSettings.aoColumns,
			aDataSort, data, iCol, sType, oSort,
			formatters = 0,
			sortCol,
			displayMaster = oSettings.aiDisplayMaster,
			aSort;
	
		// Resolve any column types that are unknown due to addition or invalidation
		// @todo Can this be moved into a 'data-ready' handler which is called when
		//   data is going to be used in the table?
		_fnColumnTypes( oSettings );
	
		aSort = _fnSortFlatten( oSettings );
	
		for ( i=0, ien=aSort.length ; i<ien ; i++ ) {
			sortCol = aSort[i];
	
			// Track if we can use the fast sort algorithm
			if ( sortCol.formatter ) {
				formatters++;
			}
	
			// Load the data needed for the sort, for each cell
			_fnSortData( oSettings, sortCol.col );
		}
	
		/* No sorting required if server-side or no sorting array */
		if ( _fnDataSource( oSettings ) != 'ssp' && aSort.length !== 0 )
		{
			// Create a value - key array of the current row positions such that we can use their
			// current position during the sort, if values match, in order to perform stable sorting
			for ( i=0, iLen=displayMaster.length ; i<iLen ; i++ ) {
				aiOrig[ displayMaster[i] ] = i;
			}
	
			/* Do the sort - here we want multi-column sorting based on a given data source (column)
			 * and sorting function (from oSort) in a certain direction. It's reasonably complex to
			 * follow on it's own, but this is what we want (example two column sorting):
			 *  fnLocalSorting = function(a,b){
			 *    var iTest;
			 *    iTest = oSort['string-asc']('data11', 'data12');
			 *      if (iTest !== 0)
			 *        return iTest;
			 *    iTest = oSort['numeric-desc']('data21', 'data22');
			 *    if (iTest !== 0)
			 *      return iTest;
			 *    return oSort['numeric-asc']( aiOrig[a], aiOrig[b] );
			 *  }
			 * Basically we have a test for each sorting column, if the data in that column is equal,
			 * test the next column. If all columns match, then we use a numeric sort on the row
			 * positions in the original data array to provide a stable sort.
			 *
			 * Note - I know it seems excessive to have two sorting methods, but the first is around
			 * 15% faster, so the second is only maintained for backwards compatibility with sorting
			 * methods which do not have a pre-sort formatting function.
			 */
			if ( formatters === aSort.length ) {
				// All sort types have formatting functions
				displayMaster.sort( function ( a, b ) {
					var
						x, y, k, test, sort,
						len=aSort.length,
						dataA = aoData[a]._aSortData,
						dataB = aoData[b]._aSortData;
	
					for ( k=0 ; k<len ; k++ ) {
						sort = aSort[k];
	
						x = dataA[ sort.col ];
						y = dataB[ sort.col ];
	
						test = x<y ? -1 : x>y ? 1 : 0;
						if ( test !== 0 ) {
							return sort.dir === 'asc' ? test : -test;
						}
					}
	
					x = aiOrig[a];
					y = aiOrig[b];
					return x<y ? -1 : x>y ? 1 : 0;
				} );
			}
			else {
				// Depreciated - remove in 1.11 (providing a plug-in option)
				// Not all sort types have formatting methods, so we have to call their sorting
				// methods.
				displayMaster.sort( function ( a, b ) {
					var
						x, y, k, l, test, sort, fn,
						len=aSort.length,
						dataA = aoData[a]._aSortData,
						dataB = aoData[b]._aSortData;
	
					for ( k=0 ; k<len ; k++ ) {
						sort = aSort[k];
	
						x = dataA[ sort.col ];
						y = dataB[ sort.col ];
	
						fn = oExtSort[ sort.type+"-"+sort.dir ] || oExtSort[ "string-"+sort.dir ];
						test = fn( x, y );
						if ( test !== 0 ) {
							return test;
						}
					}
	
					x = aiOrig[a];
					y = aiOrig[b];
					return x<y ? -1 : x>y ? 1 : 0;
				} );
			}
		}
	
		/* Tell the draw function that we have sorted the data */
		oSettings.bSorted = true;
	}
	
	
	function _fnSortAria ( settings )
	{
		var label;
		var nextSort;
		var columns = settings.aoColumns;
		var aSort = _fnSortFlatten( settings );
		var oAria = settings.oLanguage.oAria;
	
		// ARIA attributes - need to loop all columns, to update all (removing old
		// attributes as needed)
		for ( var i=0, iLen=columns.length ; i<iLen ; i++ )
		{
			var col = columns[i];
			var asSorting = col.asSorting;
			var sTitle = col.sTitle.replace( /<.*?>/g, "" );
			var th = col.nTh;
	
			// IE7 is throwing an error when setting these properties with jQuery's
			// attr() and removeAttr() methods...
			th.removeAttribute('aria-sort');
	
			/* In ARIA only the first sorting column can be marked as sorting - no multi-sort option */
			if ( col.bSortable ) {
				if ( aSort.length > 0 && aSort[0].col == i ) {
					th.setAttribute('aria-sort', aSort[0].dir=="asc" ? "ascending" : "descending" );
					nextSort = asSorting[ aSort[0].index+1 ] || asSorting[0];
				}
				else {
					nextSort = asSorting[0];
				}
	
				label = sTitle + ( nextSort === "asc" ?
					oAria.sSortAscending :
					oAria.sSortDescending
				);
			}
			else {
				label = sTitle;
			}
	
			th.setAttribute('aria-label', label);
		}
	}
	
	
	/**
	 * Function to run on user sort request
	 *  @param {object} settings dataTables settings object
	 *  @param {node} attachTo node to attach the handler to
	 *  @param {int} colIdx column sorting index
	 *  @param {boolean} [append=false] Append the requested sort to the existing
	 *    sort if true (i.e. multi-column sort)
	 *  @param {function} [callback] callback function
	 *  @memberof DataTable#oApi
	 */
	function _fnSortListener ( settings, colIdx, append, callback )
	{
		var col = settings.aoColumns[ colIdx ];
		var sorting = settings.aaSorting;
		var asSorting = col.asSorting;
		var nextSortIdx;
		var next = function ( a, overflow ) {
			var idx = a._idx;
			if ( idx === undefined ) {
				idx = $.inArray( a[1], asSorting );
			}
	
			return idx+1 < asSorting.length ?
				idx+1 :
				overflow ?
					null :
					0;
		};
	
		// Convert to 2D array if needed
		if ( typeof sorting[0] === 'number' ) {
			sorting = settings.aaSorting = [ sorting ];
		}
	
		// If appending the sort then we are multi-column sorting
		if ( append && settings.oFeatures.bSortMulti ) {
			// Are we already doing some kind of sort on this column?
			var sortIdx = $.inArray( colIdx, _pluck(sorting, '0') );
	
			if ( sortIdx !== -1 ) {
				// Yes, modify the sort
				nextSortIdx = next( sorting[sortIdx], true );
	
				if ( nextSortIdx === null && sorting.length === 1 ) {
					nextSortIdx = 0; // can't remove sorting completely
				}
	
				if ( nextSortIdx === null ) {
					sorting.splice( sortIdx, 1 );
				}
				else {
					sorting[sortIdx][1] = asSorting[ nextSortIdx ];
					sorting[sortIdx]._idx = nextSortIdx;
				}
			}
			else {
				// No sort on this column yet
				sorting.push( [ colIdx, asSorting[0], 0 ] );
				sorting[sorting.length-1]._idx = 0;
			}
		}
		else if ( sorting.length && sorting[0][0] == colIdx ) {
			// Single column - already sorting on this column, modify the sort
			nextSortIdx = next( sorting[0] );
	
			sorting.length = 1;
			sorting[0][1] = asSorting[ nextSortIdx ];
			sorting[0]._idx = nextSortIdx;
		}
		else {
			// Single column - sort only on this column
			sorting.length = 0;
			sorting.push( [ colIdx, asSorting[0] ] );
			sorting[0]._idx = 0;
		}
	
		// Run the sort by calling a full redraw
		_fnReDraw( settings );
	
		// callback used for async user interaction
		if ( typeof callback == 'function' ) {
			callback( settings );
		}
	}
	
	
	/**
	 * Attach a sort handler (click) to a node
	 *  @param {object} settings dataTables settings object
	 *  @param {node} attachTo node to attach the handler to
	 *  @param {int} colIdx column sorting index
	 *  @param {function} [callback] callback function
	 *  @memberof DataTable#oApi
	 */
	function _fnSortAttachListener ( settings, attachTo, colIdx, callback )
	{
		var col = settings.aoColumns[ colIdx ];
	
		_fnBindAction( attachTo, {}, function (e) {
			/* If the column is not sortable - don't to anything */
			if ( col.bSortable === false ) {
				return;
			}
	
			// If processing is enabled use a timeout to allow the processing
			// display to be shown - otherwise to it synchronously
			if ( settings.oFeatures.bProcessing ) {
				_fnProcessingDisplay( settings, true );
	
				setTimeout( function() {
					_fnSortListener( settings, colIdx, e.shiftKey, callback );
	
					// In server-side processing, the draw callback will remove the
					// processing display
					if ( _fnDataSource( settings ) !== 'ssp' ) {
						_fnProcessingDisplay( settings, false );
					}
				}, 0 );
			}
			else {
				_fnSortListener( settings, colIdx, e.shiftKey, callback );
			}
		} );
	}
	
	
	/**
	 * Set the sorting classes on table's body, Note: it is safe to call this function
	 * when bSort and bSortClasses are false
	 *  @param {object} oSettings dataTables settings object
	 *  @memberof DataTable#oApi
	 */
	function _fnSortingClasses( settings )
	{
		var oldSort = settings.aLastSort;
		var sortClass = settings.oClasses.sSortColumn;
		var sort = _fnSortFlatten( settings );
		var features = settings.oFeatures;
		var i, ien, colIdx;
	
		if ( features.bSort && features.bSortClasses ) {
			// Remove old sorting classes
			for ( i=0, ien=oldSort.length ; i<ien ; i++ ) {
				colIdx = oldSort[i].src;
	
				// Remove column sorting
				$( _pluck( settings.aoData, 'anCells', colIdx ) )
					.removeClass( sortClass + (i<2 ? i+1 : 3) );
			}
	
			// Add new column sorting
			for ( i=0, ien=sort.length ; i<ien ; i++ ) {
				colIdx = sort[i].src;
	
				$( _pluck( settings.aoData, 'anCells', colIdx ) )
					.addClass( sortClass + (i<2 ? i+1 : 3) );
			}
		}
	
		settings.aLastSort = sort;
	}
	
	
	// Get the data to sort a column, be it from cache, fresh (populating the
	// cache), or from a sort formatter
	function _fnSortData( settings, idx )
	{
		// Custom sorting function - provided by the sort data type
		var column = settings.aoColumns[ idx ];
		var customSort = DataTable.ext.order[ column.sSortDataType ];
		var customData;
	
		if ( customSort ) {
			customData = customSort.call( settings.oInstance, settings, idx,
				_fnColumnIndexToVisible( settings, idx )
			);
		}
	
		// Use / populate cache
		var row, cellData;
		var formatter = DataTable.ext.type.order[ column.sType+"-pre" ];
	
		for ( var i=0, ien=settings.aoData.length ; i<ien ; i++ ) {
			row = settings.aoData[i];
	
			if ( ! row._aSortData ) {
				row._aSortData = [];
			}
	
			if ( ! row._aSortData[idx] || customSort ) {
				cellData = customSort ?
					customData[i] : // If there was a custom sort function, use data from there
					_fnGetCellData( settings, i, idx, 'sort' );
	
				row._aSortData[ idx ] = formatter ?
					formatter( cellData ) :
					cellData;
			}
		}
	}
	
	
	
	/**
	 * Save the state of a table
	 *  @param {object} oSettings dataTables settings object
	 *  @memberof DataTable#oApi
	 */
	function _fnSaveState ( settings )
	{
		if ( !settings.oFeatures.bStateSave || settings.bDestroying )
		{
			return;
		}
	
		/* Store the interesting variables */
		var state = {
			time:    +new Date(),
			start:   settings._iDisplayStart,
			length:  settings._iDisplayLength,
			order:   $.extend( true, [], settings.aaSorting ),
			search:  _fnSearchToCamel( settings.oPreviousSearch ),
			columns: $.map( settings.aoColumns, function ( col, i ) {
				return {
					visible: col.bVisible,
					search: _fnSearchToCamel( settings.aoPreSearchCols[i] )
				};
			} )
		};
	
		_fnCallbackFire( settings, "aoStateSaveParams", 'stateSaveParams', [settings, state] );
	
		settings.oSavedState = state;
		settings.fnStateSaveCallback.call( settings.oInstance, settings, state );
	}
	
	
	/**
	 * Attempt to load a saved table state
	 *  @param {object} oSettings dataTables settings object
	 *  @param {object} oInit DataTables init object so we can override settings
	 *  @param {function} callback Callback to execute when the state has been loaded
	 *  @memberof DataTable#oApi
	 */
	function _fnLoadState ( settings, oInit, callback )
	{
		var i, ien;
		var columns = settings.aoColumns;
		var loaded = function ( s ) {
			if ( ! s || ! s.time ) {
				callback();
				return;
			}
	
			// Allow custom and plug-in manipulation functions to alter the saved data set and
			// cancelling of loading by returning false
			var abStateLoad = _fnCallbackFire( settings, 'aoStateLoadParams', 'stateLoadParams', [settings, s] );
			if ( $.inArray( false, abStateLoad ) !== -1 ) {
				callback();
				return;
			}
	
			// Reject old data
			var duration = settings.iStateDuration;
			if ( duration > 0 && s.time < +new Date() - (duration*1000) ) {
				callback();
				return;
			}
	
			// Number of columns have changed - all bets are off, no restore of settings
			if ( s.columns && columns.length !== s.columns.length ) {
				callback();
				return;
			}
	
			// Store the saved state so it might be accessed at any time
			settings.oLoadedState = $.extend( true, {}, s );
	
			// Restore key features - todo - for 1.11 this needs to be done by
			// subscribed events
			if ( s.start !== undefined ) {
				settings._iDisplayStart    = s.start;
				settings.iInitDisplayStart = s.start;
			}
			if ( s.length !== undefined ) {
				settings._iDisplayLength   = s.length;
			}
	
			// Order
			if ( s.order !== undefined ) {
				settings.aaSorting = [];
				$.each( s.order, function ( i, col ) {
					settings.aaSorting.push( col[0] >= columns.length ?
						[ 0, col[1] ] :
						col
					);
				} );
			}
	
			// Search
			if ( s.search !== undefined ) {
				$.extend( settings.oPreviousSearch, _fnSearchToHung( s.search ) );
			}
	
			// Columns
			//
			if ( s.columns ) {
				for ( i=0, ien=s.columns.length ; i<ien ; i++ ) {
					var col = s.columns[i];
	
					// Visibility
					if ( col.visible !== undefined ) {
						columns[i].bVisible = col.visible;
					}
	
					// Search
					if ( col.search !== undefined ) {
						$.extend( settings.aoPreSearchCols[i], _fnSearchToHung( col.search ) );
					}
				}
			}
	
			_fnCallbackFire( settings, 'aoStateLoaded', 'stateLoaded', [settings, s] );
			callback();
		}
	
		if ( ! settings.oFeatures.bStateSave ) {
			callback();
			return;
		}
	
		var state = settings.fnStateLoadCallback.call( settings.oInstance, settings, loaded );
	
		if ( state !== undefined ) {
			loaded( state );
		}
		// otherwise, wait for the loaded callback to be executed
	}
	
	
	/**
	 * Return the settings object for a particular table
	 *  @param {node} table table we are using as a dataTable
	 *  @returns {object} Settings object - or null if not found
	 *  @memberof DataTable#oApi
	 */
	function _fnSettingsFromNode ( table )
	{
		var settings = DataTable.settings;
		var idx = $.inArray( table, _pluck( settings, 'nTable' ) );
	
		return idx !== -1 ?
			settings[ idx ] :
			null;
	}
	
	
	/**
	 * Log an error message
	 *  @param {object} settings dataTables settings object
	 *  @param {int} level log error messages, or display them to the user
	 *  @param {string} msg error message
	 *  @param {int} tn Technical note id to get more information about the error.
	 *  @memberof DataTable#oApi
	 */
	function _fnLog( settings, level, msg, tn )
	{
		msg = 'DataTables warning: '+
			(settings ? 'table id='+settings.sTableId+' - ' : '')+msg;
	
		if ( tn ) {
			msg += '. For more information about this error, please see '+
			'http://datatables.net/tn/'+tn;
		}
	
		if ( ! level  ) {
			// Backwards compatibility pre 1.10
			var ext = DataTable.ext;
			var type = ext.sErrMode || ext.errMode;
	
			if ( settings ) {
				_fnCallbackFire( settings, null, 'error', [ settings, tn, msg ] );
			}
	
			if ( type == 'alert' ) {
				alert( msg );
			}
			else if ( type == 'throw' ) {
				throw new Error(msg);
			}
			else if ( typeof type == 'function' ) {
				type( settings, tn, msg );
			}
		}
		else if ( window.console && console.log ) {
			console.log( msg );
		}
	}
	
	
	/**
	 * See if a property is defined on one object, if so assign it to the other object
	 *  @param {object} ret target object
	 *  @param {object} src source object
	 *  @param {string} name property
	 *  @param {string} [mappedName] name to map too - optional, name used if not given
	 *  @memberof DataTable#oApi
	 */
	function _fnMap( ret, src, name, mappedName )
	{
		if ( $.isArray( name ) ) {
			$.each( name, function (i, val) {
				if ( $.isArray( val ) ) {
					_fnMap( ret, src, val[0], val[1] );
				}
				else {
					_fnMap( ret, src, val );
				}
			} );
	
			return;
		}
	
		if ( mappedName === undefined ) {
			mappedName = name;
		}
	
		if ( src[name] !== undefined ) {
			ret[mappedName] = src[name];
		}
	}
	
	
	/**
	 * Extend objects - very similar to jQuery.extend, but deep copy objects, and
	 * shallow copy arrays. The reason we need to do this, is that we don't want to
	 * deep copy array init values (such as aaSorting) since the dev wouldn't be
	 * able to override them, but we do want to deep copy arrays.
	 *  @param {object} out Object to extend
	 *  @param {object} extender Object from which the properties will be applied to
	 *      out
	 *  @param {boolean} breakRefs If true, then arrays will be sliced to take an
	 *      independent copy with the exception of the `data` or `aaData` parameters
	 *      if they are present. This is so you can pass in a collection to
	 *      DataTables and have that used as your data source without breaking the
	 *      references
	 *  @returns {object} out Reference, just for convenience - out === the return.
	 *  @memberof DataTable#oApi
	 *  @todo This doesn't take account of arrays inside the deep copied objects.
	 */
	function _fnExtend( out, extender, breakRefs )
	{
		var val;
	
		for ( var prop in extender ) {
			if ( extender.hasOwnProperty(prop) ) {
				val = extender[prop];
	
				if ( $.isPlainObject( val ) ) {
					if ( ! $.isPlainObject( out[prop] ) ) {
						out[prop] = {};
					}
					$.extend( true, out[prop], val );
				}
				else if ( breakRefs && prop !== 'data' && prop !== 'aaData' && $.isArray(val) ) {
					out[prop] = val.slice();
				}
				else {
					out[prop] = val;
				}
			}
		}
	
		return out;
	}
	
	
	/**
	 * Bind an event handers to allow a click or return key to activate the callback.
	 * This is good for accessibility since a return on the keyboard will have the
	 * same effect as a click, if the element has focus.
	 *  @param {element} n Element to bind the action to
	 *  @param {object} oData Data object to pass to the triggered function
	 *  @param {function} fn Callback function for when the event is triggered
	 *  @memberof DataTable#oApi
	 */
	function _fnBindAction( n, oData, fn )
	{
		$(n)
			.on( 'click.DT', oData, function (e) {
					$(n).blur(); // Remove focus outline for mouse users
					fn(e);
				} )
			.on( 'keypress.DT', oData, function (e){
					if ( e.which === 13 ) {
						e.preventDefault();
						fn(e);
					}
				} )
			.on( 'selectstart.DT', function () {
					/* Take the brutal approach to cancelling text selection */
					return false;
				} );
	}
	
	
	/**
	 * Register a callback function. Easily allows a callback function to be added to
	 * an array store of callback functions that can then all be called together.
	 *  @param {object} oSettings dataTables settings object
	 *  @param {string} sStore Name of the array storage for the callbacks in oSettings
	 *  @param {function} fn Function to be called back
	 *  @param {string} sName Identifying name for the callback (i.e. a label)
	 *  @memberof DataTable#oApi
	 */
	function _fnCallbackReg( oSettings, sStore, fn, sName )
	{
		if ( fn )
		{
			oSettings[sStore].push( {
				"fn": fn,
				"sName": sName
			} );
		}
	}
	
	
	/**
	 * Fire callback functions and trigger events. Note that the loop over the
	 * callback array store is done backwards! Further note that you do not want to
	 * fire off triggers in time sensitive applications (for example cell creation)
	 * as its slow.
	 *  @param {object} settings dataTables settings object
	 *  @param {string} callbackArr Name of the array storage for the callbacks in
	 *      oSettings
	 *  @param {string} eventName Name of the jQuery custom event to trigger. If
	 *      null no trigger is fired
	 *  @param {array} args Array of arguments to pass to the callback function /
	 *      trigger
	 *  @memberof DataTable#oApi
	 */
	function _fnCallbackFire( settings, callbackArr, eventName, args )
	{
		var ret = [];
	
		if ( callbackArr ) {
			ret = $.map( settings[callbackArr].slice().reverse(), function (val, i) {
				return val.fn.apply( settings.oInstance, args );
			} );
		}
	
		if ( eventName !== null ) {
			var e = $.Event( eventName+'.dt' );
	
			$(settings.nTable).trigger( e, args );
	
			ret.push( e.result );
		}
	
		return ret;
	}
	
	
	function _fnLengthOverflow ( settings )
	{
		var
			start = settings._iDisplayStart,
			end = settings.fnDisplayEnd(),
			len = settings._iDisplayLength;
	
		/* If we have space to show extra rows (backing up from the end point - then do so */
		if ( start >= end )
		{
			start = end - len;
		}
	
		// Keep the start record on the current page
		start -= (start % len);
	
		if ( len === -1 || start < 0 )
		{
			start = 0;
		}
	
		settings._iDisplayStart = start;
	}
	
	
	function _fnRenderer( settings, type )
	{
		var renderer = settings.renderer;
		var host = DataTable.ext.renderer[type];
	
		if ( $.isPlainObject( renderer ) && renderer[type] ) {
			// Specific renderer for this type. If available use it, otherwise use
			// the default.
			return host[renderer[type]] || host._;
		}
		else if ( typeof renderer === 'string' ) {
			// Common renderer - if there is one available for this type use it,
			// otherwise use the default
			return host[renderer] || host._;
		}
	
		// Use the default
		return host._;
	}
	
	
	/**
	 * Detect the data source being used for the table. Used to simplify the code
	 * a little (ajax) and to make it compress a little smaller.
	 *
	 *  @param {object} settings dataTables settings object
	 *  @returns {string} Data source
	 *  @memberof DataTable#oApi
	 */
	function _fnDataSource ( settings )
	{
		if ( settings.oFeatures.bServerSide ) {
			return 'ssp';
		}
		else if ( settings.ajax || settings.sAjaxSource ) {
			return 'ajax';
		}
		return 'dom';
	}
	

	
	
	/**
	 * Computed structure of the DataTables API, defined by the options passed to
	 * `DataTable.Api.register()` when building the API.
	 *
	 * The structure is built in order to speed creation and extension of the Api
	 * objects since the extensions are effectively pre-parsed.
	 *
	 * The array is an array of objects with the following structure, where this
	 * base array represents the Api prototype base:
	 *
	 *     [
	 *       {
	 *         name:      'data'                -- string   - Property name
	 *         val:       function () {},       -- function - Api method (or undefined if just an object
	 *         methodExt: [ ... ],              -- array    - Array of Api object definitions to extend the method result
	 *         propExt:   [ ... ]               -- array    - Array of Api object definitions to extend the property
	 *       },
	 *       {
	 *         name:     'row'
	 *         val:       {},
	 *         methodExt: [ ... ],
	 *         propExt:   [
	 *           {
	 *             name:      'data'
	 *             val:       function () {},
	 *             methodExt: [ ... ],
	 *             propExt:   [ ... ]
	 *           },
	 *           ...
	 *         ]
	 *       }
	 *     ]
	 *
	 * @type {Array}
	 * @ignore
	 */
	var __apiStruct = [];
	
	
	/**
	 * `Array.prototype` reference.
	 *
	 * @type object
	 * @ignore
	 */
	var __arrayProto = Array.prototype;
	
	
	/**
	 * Abstraction for `context` parameter of the `Api` constructor to allow it to
	 * take several different forms for ease of use.
	 *
	 * Each of the input parameter types will be converted to a DataTables settings
	 * object where possible.
	 *
	 * @param  {string|node|jQuery|object} mixed DataTable identifier. Can be one
	 *   of:
	 *
	 *   * `string` - jQuery selector. Any DataTables' matching the given selector
	 *     with be found and used.
	 *   * `node` - `TABLE` node which has already been formed into a DataTable.
	 *   * `jQuery` - A jQuery object of `TABLE` nodes.
	 *   * `object` - DataTables settings object
	 *   * `DataTables.Api` - API instance
	 * @return {array|null} Matching DataTables settings objects. `null` or
	 *   `undefined` is returned if no matching DataTable is found.
	 * @ignore
	 */
	var _toSettings = function ( mixed )
	{
		var idx, jq;
		var settings = DataTable.settings;
		var tables = $.map( settings, function (el, i) {
			return el.nTable;
		} );
	
		if ( ! mixed ) {
			return [];
		}
		else if ( mixed.nTable && mixed.oApi ) {
			// DataTables settings object
			return [ mixed ];
		}
		else if ( mixed.nodeName && mixed.nodeName.toLowerCase() === 'table' ) {
			// Table node
			idx = $.inArray( mixed, tables );
			return idx !== -1 ? [ settings[idx] ] : null;
		}
		else if ( mixed && typeof mixed.settings === 'function' ) {
			return mixed.settings().toArray();
		}
		else if ( typeof mixed === 'string' ) {
			// jQuery selector
			jq = $(mixed);
		}
		else if ( mixed instanceof $ ) {
			// jQuery object (also DataTables instance)
			jq = mixed;
		}
	
		if ( jq ) {
			return jq.map( function(i) {
				idx = $.inArray( this, tables );
				return idx !== -1 ? settings[idx] : null;
			} ).toArray();
		}
	};
	
	
	/**
	 * DataTables API class - used to control and interface with  one or more
	 * DataTables enhanced tables.
	 *
	 * The API class is heavily based on jQuery, presenting a chainable interface
	 * that you can use to interact with tables. Each instance of the API class has
	 * a "context" - i.e. the tables that it will operate on. This could be a single
	 * table, all tables on a page or a sub-set thereof.
	 *
	 * Additionally the API is designed to allow you to easily work with the data in
	 * the tables, retrieving and manipulating it as required. This is done by
	 * presenting the API class as an array like interface. The contents of the
	 * array depend upon the actions requested by each method (for example
	 * `rows().nodes()` will return an array of nodes, while `rows().data()` will
	 * return an array of objects or arrays depending upon your table's
	 * configuration). The API object has a number of array like methods (`push`,
	 * `pop`, `reverse` etc) as well as additional helper methods (`each`, `pluck`,
	 * `unique` etc) to assist your working with the data held in a table.
	 *
	 * Most methods (those which return an Api instance) are chainable, which means
	 * the return from a method call also has all of the methods available that the
	 * top level object had. For example, these two calls are equivalent:
	 *
	 *     // Not chained
	 *     api.row.add( {...} );
	 *     api.draw();
	 *
	 *     // Chained
	 *     api.row.add( {...} ).draw();
	 *
	 * @class DataTable.Api
	 * @param {array|object|string|jQuery} context DataTable identifier. This is
	 *   used to define which DataTables enhanced tables this API will operate on.
	 *   Can be one of:
	 *
	 *   * `string` - jQuery selector. Any DataTables' matching the given selector
	 *     with be found and used.
	 *   * `node` - `TABLE` node which has already been formed into a DataTable.
	 *   * `jQuery` - A jQuery object of `TABLE` nodes.
	 *   * `object` - DataTables settings object
	 * @param {array} [data] Data to initialise the Api instance with.
	 *
	 * @example
	 *   // Direct initialisation during DataTables construction
	 *   var api = $('#example').DataTable();
	 *
	 * @example
	 *   // Initialisation using a DataTables jQuery object
	 *   var api = $('#example').dataTable().api();
	 *
	 * @example
	 *   // Initialisation as a constructor
	 *   var api = new $.fn.DataTable.Api( 'table.dataTable' );
	 */
	_Api = function ( context, data )
	{
		if ( ! (this instanceof _Api) ) {
			return new _Api( context, data );
		}
	
		var settings = [];
		var ctxSettings = function ( o ) {
			var a = _toSettings( o );
			if ( a ) {
				settings = settings.concat( a );
			}
		};
	
		if ( $.isArray( context ) ) {
			for ( var i=0, ien=context.length ; i<ien ; i++ ) {
				ctxSettings( context[i] );
			}
		}
		else {
			ctxSettings( context );
		}
	
		// Remove duplicates
		this.context = _unique( settings );
	
		// Initial data
		if ( data ) {
			$.merge( this, data );
		}
	
		// selector
		this.selector = {
			rows: null,
			cols: null,
			opts: null
		};
	
		_Api.extend( this, this, __apiStruct );
	};
	
	DataTable.Api = _Api;
	
	// Don't destroy the existing prototype, just extend it. Required for jQuery 2's
	// isPlainObject.
	$.extend( _Api.prototype, {
		any: function ()
		{
			return this.count() !== 0;
		},
	
	
		concat:  __arrayProto.concat,
	
	
		context: [], // array of table settings objects
	
	
		count: function ()
		{
			return this.flatten().length;
		},
	
	
		each: function ( fn )
		{
			for ( var i=0, ien=this.length ; i<ien; i++ ) {
				fn.call( this, this[i], i, this );
			}
	
			return this;
		},
	
	
		eq: function ( idx )
		{
			var ctx = this.context;
	
			return ctx.length > idx ?
				new _Api( ctx[idx], this[idx] ) :
				null;
		},
	
	
		filter: function ( fn )
		{
			var a = [];
	
			if ( __arrayProto.filter ) {
				a = __arrayProto.filter.call( this, fn, this );
			}
			else {
				// Compatibility for browsers without EMCA-252-5 (JS 1.6)
				for ( var i=0, ien=this.length ; i<ien ; i++ ) {
					if ( fn.call( this, this[i], i, this ) ) {
						a.push( this[i] );
					}
				}
			}
	
			return new _Api( this.context, a );
		},
	
	
		flatten: function ()
		{
			var a = [];
			return new _Api( this.context, a.concat.apply( a, this.toArray() ) );
		},
	
	
		join:    __arrayProto.join,
	
	
		indexOf: __arrayProto.indexOf || function (obj, start)
		{
			for ( var i=(start || 0), ien=this.length ; i<ien ; i++ ) {
				if ( this[i] === obj ) {
					return i;
				}
			}
			return -1;
		},
	
		iterator: function ( flatten, type, fn, alwaysNew ) {
			var
				a = [], ret,
				i, ien, j, jen,
				context = this.context,
				rows, items, item,
				selector = this.selector;
	
			// Argument shifting
			if ( typeof flatten === 'string' ) {
				alwaysNew = fn;
				fn = type;
				type = flatten;
				flatten = false;
			}
	
			for ( i=0, ien=context.length ; i<ien ; i++ ) {
				var apiInst = new _Api( context[i] );
	
				if ( type === 'table' ) {
					ret = fn.call( apiInst, context[i], i );
	
					if ( ret !== undefined ) {
						a.push( ret );
					}
				}
				else if ( type === 'columns' || type === 'rows' ) {
					// this has same length as context - one entry for each table
					ret = fn.call( apiInst, context[i], this[i], i );
	
					if ( ret !== undefined ) {
						a.push( ret );
					}
				}
				else if ( type === 'column' || type === 'column-rows' || type === 'row' || type === 'cell' ) {
					// columns and rows share the same structure.
					// 'this' is an array of column indexes for each context
					items = this[i];
	
					if ( type === 'column-rows' ) {
						rows = _selector_row_indexes( context[i], selector.opts );
					}
	
					for ( j=0, jen=items.length ; j<jen ; j++ ) {
						item = items[j];
	
						if ( type === 'cell' ) {
							ret = fn.call( apiInst, context[i], item.row, item.column, i, j );
						}
						else {
							ret = fn.call( apiInst, context[i], item, i, j, rows );
						}
	
						if ( ret !== undefined ) {
							a.push( ret );
						}
					}
				}
			}
	
			if ( a.length || alwaysNew ) {
				var api = new _Api( context, flatten ? a.concat.apply( [], a ) : a );
				var apiSelector = api.selector;
				apiSelector.rows = selector.rows;
				apiSelector.cols = selector.cols;
				apiSelector.opts = selector.opts;
				return api;
			}
			return this;
		},
	
	
		lastIndexOf: __arrayProto.lastIndexOf || function (obj, start)
		{
			// Bit cheeky...
			return this.indexOf.apply( this.toArray.reverse(), arguments );
		},
	
	
		length:  0,
	
	
		map: function ( fn )
		{
			var a = [];
	
			if ( __arrayProto.map ) {
				a = __arrayProto.map.call( this, fn, this );
			}
			else {
				// Compatibility for browsers without EMCA-252-5 (JS 1.6)
				for ( var i=0, ien=this.length ; i<ien ; i++ ) {
					a.push( fn.call( this, this[i], i ) );
				}
			}
	
			return new _Api( this.context, a );
		},
	
	
		pluck: function ( prop )
		{
			return this.map( function ( el ) {
				return el[ prop ];
			} );
		},
	
		pop:     __arrayProto.pop,
	
	
		push:    __arrayProto.push,
	
	
		// Does not return an API instance
		reduce: __arrayProto.reduce || function ( fn, init )
		{
			return _fnReduce( this, fn, init, 0, this.length, 1 );
		},
	
	
		reduceRight: __arrayProto.reduceRight || function ( fn, init )
		{
			return _fnReduce( this, fn, init, this.length-1, -1, -1 );
		},
	
	
		reverse: __arrayProto.reverse,
	
	
		// Object with rows, columns and opts
		selector: null,
	
	
		shift:   __arrayProto.shift,
	
	
		slice: function () {
			return new _Api( this.context, this );
		},
	
	
		sort:    __arrayProto.sort, // ? name - order?
	
	
		splice:  __arrayProto.splice,
	
	
		toArray: function ()
		{
			return __arrayProto.slice.call( this );
		},
	
	
		to$: function ()
		{
			return $( this );
		},
	
	
		toJQuery: function ()
		{
			return $( this );
		},
	
	
		unique: function ()
		{
			return new _Api( this.context, _unique(this) );
		},
	
	
		unshift: __arrayProto.unshift
	} );
	
	
	_Api.extend = function ( scope, obj, ext )
	{
		// Only extend API instances and static properties of the API
		if ( ! ext.length || ! obj || ( ! (obj instanceof _Api) && ! obj.__dt_wrapper ) ) {
			return;
		}
	
		var
			i, ien,
			j, jen,
			struct, inner,
			methodScoping = function ( scope, fn, struc ) {
				return function () {
					var ret = fn.apply( scope, arguments );
	
					// Method extension
					_Api.extend( ret, ret, struc.methodExt );
					return ret;
				};
			};
	
		for ( i=0, ien=ext.length ; i<ien ; i++ ) {
			struct = ext[i];
	
			// Value
			obj[ struct.name ] = typeof struct.val === 'function' ?
				methodScoping( scope, struct.val, struct ) :
				$.isPlainObject( struct.val ) ?
					{} :
					struct.val;
	
			obj[ struct.name ].__dt_wrapper = true;
	
			// Property extension
			_Api.extend( scope, obj[ struct.name ], struct.propExt );
		}
	};
	
	
	// @todo - Is there need for an augment function?
	// _Api.augment = function ( inst, name )
	// {
	// 	// Find src object in the structure from the name
	// 	var parts = name.split('.');
	
	// 	_Api.extend( inst, obj );
	// };
	
	
	//     [
	//       {
	//         name:      'data'                -- string   - Property name
	//         val:       function () {},       -- function - Api method (or undefined if just an object
	//         methodExt: [ ... ],              -- array    - Array of Api object definitions to extend the method result
	//         propExt:   [ ... ]               -- array    - Array of Api object definitions to extend the property
	//       },
	//       {
	//         name:     'row'
	//         val:       {},
	//         methodExt: [ ... ],
	//         propExt:   [
	//           {
	//             name:      'data'
	//             val:       function () {},
	//             methodExt: [ ... ],
	//             propExt:   [ ... ]
	//           },
	//           ...
	//         ]
	//       }
	//     ]
	
	_Api.register = _api_register = function ( name, val )
	{
		if ( $.isArray( name ) ) {
			for ( var j=0, jen=name.length ; j<jen ; j++ ) {
				_Api.register( name[j], val );
			}
			return;
		}
	
		var
			i, ien,
			heir = name.split('.'),
			struct = __apiStruct,
			key, method;
	
		var find = function ( src, name ) {
			for ( var i=0, ien=src.length ; i<ien ; i++ ) {
				if ( src[i].name === name ) {
					return src[i];
				}
			}
			return null;
		};
	
		for ( i=0, ien=heir.length ; i<ien ; i++ ) {
			method = heir[i].indexOf('()') !== -1;
			key = method ?
				heir[i].replace('()', '') :
				heir[i];
	
			var src = find( struct, key );
			if ( ! src ) {
				src = {
					name:      key,
					val:       {},
					methodExt: [],
					propExt:   []
				};
				struct.push( src );
			}
	
			if ( i === ien-1 ) {
				src.val = val;
			}
			else {
				struct = method ?
					src.methodExt :
					src.propExt;
			}
		}
	};
	
	
	_Api.registerPlural = _api_registerPlural = function ( pluralName, singularName, val ) {
		_Api.register( pluralName, val );
	
		_Api.register( singularName, function () {
			var ret = val.apply( this, arguments );
	
			if ( ret === this ) {
				// Returned item is the API instance that was passed in, return it
				return this;
			}
			else if ( ret instanceof _Api ) {
				// New API instance returned, want the value from the first item
				// in the returned array for the singular result.
				return ret.length ?
					$.isArray( ret[0] ) ?
						new _Api( ret.context, ret[0] ) : // Array results are 'enhanced'
						ret[0] :
					undefined;
			}
	
			// Non-API return - just fire it back
			return ret;
		} );
	};
	
	
	/**
	 * Selector for HTML tables. Apply the given selector to the give array of
	 * DataTables settings objects.
	 *
	 * @param {string|integer} [selector] jQuery selector string or integer
	 * @param  {array} Array of DataTables settings objects to be filtered
	 * @return {array}
	 * @ignore
	 */
	var __table_selector = function ( selector, a )
	{
		// Integer is used to pick out a table by index
		if ( typeof selector === 'number' ) {
			return [ a[ selector ] ];
		}
	
		// Perform a jQuery selector on the table nodes
		var nodes = $.map( a, function (el, i) {
			return el.nTable;
		} );
	
		return $(nodes)
			.filter( selector )
			.map( function (i) {
				// Need to translate back from the table node to the settings
				var idx = $.inArray( this, nodes );
				return a[ idx ];
			} )
			.toArray();
	};
	
	
	
	/**
	 * Context selector for the API's context (i.e. the tables the API instance
	 * refers to.
	 *
	 * @name    DataTable.Api#tables
	 * @param {string|integer} [selector] Selector to pick which tables the iterator
	 *   should operate on. If not given, all tables in the current context are
	 *   used. This can be given as a jQuery selector (for example `':gt(0)'`) to
	 *   select multiple tables or as an integer to select a single table.
	 * @returns {DataTable.Api} Returns a new API instance if a selector is given.
	 */
	_api_register( 'tables()', function ( selector ) {
		// A new instance is created if there was a selector specified
		return selector ?
			new _Api( __table_selector( selector, this.context ) ) :
			this;
	} );
	
	
	_api_register( 'table()', function ( selector ) {
		var tables = this.tables( selector );
		var ctx = tables.context;
	
		// Truncate to the first matched table
		return ctx.length ?
			new _Api( ctx[0] ) :
			tables;
	} );
	
	
	_api_registerPlural( 'tables().nodes()', 'table().node()' , function () {
		return this.iterator( 'table', function ( ctx ) {
			return ctx.nTable;
		}, 1 );
	} );
	
	
	_api_registerPlural( 'tables().body()', 'table().body()' , function () {
		return this.iterator( 'table', function ( ctx ) {
			return ctx.nTBody;
		}, 1 );
	} );
	
	
	_api_registerPlural( 'tables().header()', 'table().header()' , function () {
		return this.iterator( 'table', function ( ctx ) {
			return ctx.nTHead;
		}, 1 );
	} );
	
	
	_api_registerPlural( 'tables().footer()', 'table().footer()' , function () {
		return this.iterator( 'table', function ( ctx ) {
			return ctx.nTFoot;
		}, 1 );
	} );
	
	
	_api_registerPlural( 'tables().containers()', 'table().container()' , function () {
		return this.iterator( 'table', function ( ctx ) {
			return ctx.nTableWrapper;
		}, 1 );
	} );
	
	
	
	/**
	 * Redraw the tables in the current context.
	 */
	_api_register( 'draw()', function ( paging ) {
		return this.iterator( 'table', function ( settings ) {
			if ( paging === 'page' ) {
				_fnDraw( settings );
			}
			else {
				if ( typeof paging === 'string' ) {
					paging = paging === 'full-hold' ?
						false :
						true;
				}
	
				_fnReDraw( settings, paging===false );
			}
		} );
	} );
	
	
	
	/**
	 * Get the current page index.
	 *
	 * @return {integer} Current page index (zero based)
	 *//**
	 * Set the current page.
	 *
	 * Note that if you attempt to show a page which does not exist, DataTables will
	 * not throw an error, but rather reset the paging.
	 *
	 * @param {integer|string} action The paging action to take. This can be one of:
	 *  * `integer` - The page index to jump to
	 *  * `string` - An action to take:
	 *    * `first` - Jump to first page.
	 *    * `next` - Jump to the next page
	 *    * `previous` - Jump to previous page
	 *    * `last` - Jump to the last page.
	 * @returns {DataTables.Api} this
	 */
	_api_register( 'page()', function ( action ) {
		if ( action === undefined ) {
			return this.page.info().page; // not an expensive call
		}
	
		// else, have an action to take on all tables
		return this.iterator( 'table', function ( settings ) {
			_fnPageChange( settings, action );
		} );
	} );
	
	
	/**
	 * Paging information for the first table in the current context.
	 *
	 * If you require paging information for another table, use the `table()` method
	 * with a suitable selector.
	 *
	 * @return {object} Object with the following properties set:
	 *  * `page` - Current page index (zero based - i.e. the first page is `0`)
	 *  * `pages` - Total number of pages
	 *  * `start` - Display index for the first record shown on the current page
	 *  * `end` - Display index for the last record shown on the current page
	 *  * `length` - Display length (number of records). Note that generally `start
	 *    + length = end`, but this is not always true, for example if there are
	 *    only 2 records to show on the final page, with a length of 10.
	 *  * `recordsTotal` - Full data set length
	 *  * `recordsDisplay` - Data set length once the current filtering criterion
	 *    are applied.
	 */
	_api_register( 'page.info()', function ( action ) {
		if ( this.context.length === 0 ) {
			return undefined;
		}
	
		var
			settings   = this.context[0],
			start      = settings._iDisplayStart,
			len        = settings.oFeatures.bPaginate ? settings._iDisplayLength : -1,
			visRecords = settings.fnRecordsDisplay(),
			all        = len === -1;
	
		return {
			"page":           all ? 0 : Math.floor( start / len ),
			"pages":          all ? 1 : Math.ceil( visRecords / len ),
			"start":          start,
			"end":            settings.fnDisplayEnd(),
			"length":         len,
			"recordsTotal":   settings.fnRecordsTotal(),
			"recordsDisplay": visRecords,
			"serverSide":     _fnDataSource( settings ) === 'ssp'
		};
	} );
	
	
	/**
	 * Get the current page length.
	 *
	 * @return {integer} Current page length. Note `-1` indicates that all records
	 *   are to be shown.
	 *//**
	 * Set the current page length.
	 *
	 * @param {integer} Page length to set. Use `-1` to show all records.
	 * @returns {DataTables.Api} this
	 */
	_api_register( 'page.len()', function ( len ) {
		// Note that we can't call this function 'length()' because `length`
		// is a Javascript property of functions which defines how many arguments
		// the function expects.
		if ( len === undefined ) {
			return this.context.length !== 0 ?
				this.context[0]._iDisplayLength :
				undefined;
		}
	
		// else, set the page length
		return this.iterator( 'table', function ( settings ) {
			_fnLengthChange( settings, len );
		} );
	} );
	
	
	
	var __reload = function ( settings, holdPosition, callback ) {
		// Use the draw event to trigger a callback
		if ( callback ) {
			var api = new _Api( settings );
	
			api.one( 'draw', function () {
				callback( api.ajax.json() );
			} );
		}
	
		if ( _fnDataSource( settings ) == 'ssp' ) {
			_fnReDraw( settings, holdPosition );
		}
		else {
			_fnProcessingDisplay( settings, true );
	
			// Cancel an existing request
			var xhr = settings.jqXHR;
			if ( xhr && xhr.readyState !== 4 ) {
				xhr.abort();
			}
	
			// Trigger xhr
			_fnBuildAjax( settings, [], function( json ) {
				_fnClearTable( settings );
	
				var data = _fnAjaxDataSrc( settings, json );
				for ( var i=0, ien=data.length ; i<ien ; i++ ) {
					_fnAddData( settings, data[i] );
				}
	
				_fnReDraw( settings, holdPosition );
				_fnProcessingDisplay( settings, false );
			} );
		}
	};
	
	
	/**
	 * Get the JSON response from the last Ajax request that DataTables made to the
	 * server. Note that this returns the JSON from the first table in the current
	 * context.
	 *
	 * @return {object} JSON received from the server.
	 */
	_api_register( 'ajax.json()', function () {
		var ctx = this.context;
	
		if ( ctx.length > 0 ) {
			return ctx[0].json;
		}
	
		// else return undefined;
	} );
	
	
	/**
	 * Get the data submitted in the last Ajax request
	 */
	_api_register( 'ajax.params()', function () {
		var ctx = this.context;
	
		if ( ctx.length > 0 ) {
			return ctx[0].oAjaxData;
		}
	
		// else return undefined;
	} );
	
	
	/**
	 * Reload tables from the Ajax data source. Note that this function will
	 * automatically re-draw the table when the remote data has been loaded.
	 *
	 * @param {boolean} [reset=true] Reset (default) or hold the current paging
	 *   position. A full re-sort and re-filter is performed when this method is
	 *   called, which is why the pagination reset is the default action.
	 * @returns {DataTables.Api} this
	 */
	_api_register( 'ajax.reload()', function ( callback, resetPaging ) {
		return this.iterator( 'table', function (settings) {
			__reload( settings, resetPaging===false, callback );
		} );
	} );
	
	
	/**
	 * Get the current Ajax URL. Note that this returns the URL from the first
	 * table in the current context.
	 *
	 * @return {string} Current Ajax source URL
	 *//**
	 * Set the Ajax URL. Note that this will set the URL for all tables in the
	 * current context.
	 *
	 * @param {string} url URL to set.
	 * @returns {DataTables.Api} this
	 */
	_api_register( 'ajax.url()', function ( url ) {
		var ctx = this.context;
	
		if ( url === undefined ) {
			// get
			if ( ctx.length === 0 ) {
				return undefined;
			}
			ctx = ctx[0];
	
			return ctx.ajax ?
				$.isPlainObject( ctx.ajax ) ?
					ctx.ajax.url :
					ctx.ajax :
				ctx.sAjaxSource;
		}
	
		// set
		return this.iterator( 'table', function ( settings ) {
			if ( $.isPlainObject( settings.ajax ) ) {
				settings.ajax.url = url;
			}
			else {
				settings.ajax = url;
			}
			// No need to consider sAjaxSource here since DataTables gives priority
			// to `ajax` over `sAjaxSource`. So setting `ajax` here, renders any
			// value of `sAjaxSource` redundant.
		} );
	} );
	
	
	/**
	 * Load data from the newly set Ajax URL. Note that this method is only
	 * available when `ajax.url()` is used to set a URL. Additionally, this method
	 * has the same effect as calling `ajax.reload()` but is provided for
	 * convenience when setting a new URL. Like `ajax.reload()` it will
	 * automatically redraw the table once the remote data has been loaded.
	 *
	 * @returns {DataTables.Api} this
	 */
	_api_register( 'ajax.url().load()', function ( callback, resetPaging ) {
		// Same as a reload, but makes sense to present it for easy access after a
		// url change
		return this.iterator( 'table', function ( ctx ) {
			__reload( ctx, resetPaging===false, callback );
		} );
	} );
	
	
	
	
	var _selector_run = function ( type, selector, selectFn, settings, opts )
	{
		var
			out = [], res,
			a, i, ien, j, jen,
			selectorType = typeof selector;
	
		// Can't just check for isArray here, as an API or jQuery instance might be
		// given with their array like look
		if ( ! selector || selectorType === 'string' || selectorType === 'function' || selector.length === undefined ) {
			selector = [ selector ];
		}
	
		for ( i=0, ien=selector.length ; i<ien ; i++ ) {
			// Only split on simple strings - complex expressions will be jQuery selectors
			a = selector[i] && selector[i].split && ! selector[i].match(/[\[\(:]/) ?
				selector[i].split(',') :
				[ selector[i] ];
	
			for ( j=0, jen=a.length ; j<jen ; j++ ) {
				res = selectFn( typeof a[j] === 'string' ? $.trim(a[j]) : a[j] );
	
				if ( res && res.length ) {
					out = out.concat( res );
				}
			}
		}
	
		// selector extensions
		var ext = _ext.selector[ type ];
		if ( ext.length ) {
			for ( i=0, ien=ext.length ; i<ien ; i++ ) {
				out = ext[i]( settings, opts, out );
			}
		}
	
		return _unique( out );
	};
	
	
	var _selector_opts = function ( opts )
	{
		if ( ! opts ) {
			opts = {};
		}
	
		// Backwards compatibility for 1.9- which used the terminology filter rather
		// than search
		if ( opts.filter && opts.search === undefined ) {
			opts.search = opts.filter;
		}
	
		return $.extend( {
			search: 'none',
			order: 'current',
			page: 'all'
		}, opts );
	};
	
	
	var _selector_first = function ( inst )
	{
		// Reduce the API instance to the first item found
		for ( var i=0, ien=inst.length ; i<ien ; i++ ) {
			if ( inst[i].length > 0 ) {
				// Assign the first element to the first item in the instance
				// and truncate the instance and context
				inst[0] = inst[i];
				inst[0].length = 1;
				inst.length = 1;
				inst.context = [ inst.context[i] ];
	
				return inst;
			}
		}
	
		// Not found - return an empty instance
		inst.length = 0;
		return inst;
	};
	
	
	var _selector_row_indexes = function ( settings, opts )
	{
		var
			i, ien, tmp, a=[],
			displayFiltered = settings.aiDisplay,
			displayMaster = settings.aiDisplayMaster;
	
		var
			search = opts.search,  // none, applied, removed
			order  = opts.order,   // applied, current, index (original - compatibility with 1.9)
			page   = opts.page;    // all, current
	
		if ( _fnDataSource( settings ) == 'ssp' ) {
			// In server-side processing mode, most options are irrelevant since
			// rows not shown don't exist and the index order is the applied order
			// Removed is a special case - for consistency just return an empty
			// array
			return search === 'removed' ?
				[] :
				_range( 0, displayMaster.length );
		}
		else if ( page == 'current' ) {
			// Current page implies that order=current and fitler=applied, since it is
			// fairly senseless otherwise, regardless of what order and search actually
			// are
			for ( i=settings._iDisplayStart, ien=settings.fnDisplayEnd() ; i<ien ; i++ ) {
				a.push( displayFiltered[i] );
			}
		}
		else if ( order == 'current' || order == 'applied' ) {
			if ( search == 'none') {
				a = displayMaster.slice();
			}
			else if ( search == 'applied' ) {
				a = displayFiltered.slice();
			}
			else if ( search == 'removed' ) {
				// O(n+m) solution by creating a hash map
				var displayFilteredMap = {};
	
				for ( var i=0, ien=displayFiltered.length ; i<ien ; i++ ) {
					displayFilteredMap[displayFiltered[i]] = null;
				}
	
				a = $.map( displayMaster, function (el) {
					return ! displayFilteredMap.hasOwnProperty(el) ?
						el :
						null;
				} );
			}
		}
		else if ( order == 'index' || order == 'original' ) {
			for ( i=0, ien=settings.aoData.length ; i<ien ; i++ ) {
				if ( search == 'none' ) {
					a.push( i );
				}
				else { // applied | removed
					tmp = $.inArray( i, displayFiltered );
	
					if ((tmp === -1 && search == 'removed') ||
						(tmp >= 0   && search == 'applied') )
					{
						a.push( i );
					}
				}
			}
		}
	
		return a;
	};
	
	
	/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
	 * Rows
	 *
	 * {}          - no selector - use all available rows
	 * {integer}   - row aoData index
	 * {node}      - TR node
	 * {string}    - jQuery selector to apply to the TR elements
	 * {array}     - jQuery array of nodes, or simply an array of TR nodes
	 *
	 */
	var __row_selector = function ( settings, selector, opts )
	{
		var rows;
		var run = function ( sel ) {
			var selInt = _intVal( sel );
			var i, ien;
			var aoData = settings.aoData;
	
			// Short cut - selector is a number and no options provided (default is
			// all records, so no need to check if the index is in there, since it
			// must be - dev error if the index doesn't exist).
			if ( selInt !== null && ! opts ) {
				return [ selInt ];
			}
	
			if ( ! rows ) {
				rows = _selector_row_indexes( settings, opts );
			}
	
			if ( selInt !== null && $.inArray( selInt, rows ) !== -1 ) {
				// Selector - integer
				return [ selInt ];
			}
			else if ( sel === null || sel === undefined || sel === '' ) {
				// Selector - none
				return rows;
			}
	
			// Selector - function
			if ( typeof sel === 'function' ) {
				return $.map( rows, function (idx) {
					var row = aoData[ idx ];
					return sel( idx, row._aData, row.nTr ) ? idx : null;
				} );
			}
	
			// Selector - node
			if ( sel.nodeName ) {
				var rowIdx = sel._DT_RowIndex;  // Property added by DT for fast lookup
				var cellIdx = sel._DT_CellIndex;
	
				if ( rowIdx !== undefined ) {
					// Make sure that the row is actually still present in the table
					return aoData[ rowIdx ] && aoData[ rowIdx ].nTr === sel ?
						[ rowIdx ] :
						[];
				}
				else if ( cellIdx ) {
					return aoData[ cellIdx.row ] && aoData[ cellIdx.row ].nTr === sel ?
						[ cellIdx.row ] :
						[];
				}
				else {
					var host = $(sel).closest('*[data-dt-row]');
					return host.length ?
						[ host.data('dt-row') ] :
						[];
				}
			}
	
			// ID selector. Want to always be able to select rows by id, regardless
			// of if the tr element has been created or not, so can't rely upon
			// jQuery here - hence a custom implementation. This does not match
			// Sizzle's fast selector or HTML4 - in HTML5 the ID can be anything,
			// but to select it using a CSS selector engine (like Sizzle or
			// querySelect) it would need to need to be escaped for some characters.
			// DataTables simplifies this for row selectors since you can select
			// only a row. A # indicates an id any anything that follows is the id -
			// unescaped.
			if ( typeof sel === 'string' && sel.charAt(0) === '#' ) {
				// get row index from id
				var rowObj = settings.aIds[ sel.replace( /^#/, '' ) ];
				if ( rowObj !== undefined ) {
					return [ rowObj.idx ];
				}
	
				// need to fall through to jQuery in case there is DOM id that
				// matches
			}
			
			// Get nodes in the order from the `rows` array with null values removed
			var nodes = _removeEmpty(
				_pluck_order( settings.aoData, rows, 'nTr' )
			);
	
			// Selector - jQuery selector string, array of nodes or jQuery object/
			// As jQuery's .filter() allows jQuery objects to be passed in filter,
			// it also allows arrays, so this will cope with all three options
			return $(nodes)
				.filter( sel )
				.map( function () {
					return this._DT_RowIndex;
				} )
				.toArray();
		};
	
		return _selector_run( 'row', selector, run, settings, opts );
	};
	
	
	_api_register( 'rows()', function ( selector, opts ) {
		// argument shifting
		if ( selector === undefined ) {
			selector = '';
		}
		else if ( $.isPlainObject( selector ) ) {
			opts = selector;
			selector = '';
		}
	
		opts = _selector_opts( opts );
	
		var inst = this.iterator( 'table', function ( settings ) {
			return __row_selector( settings, selector, opts );
		}, 1 );
	
		// Want argument shifting here and in __row_selector?
		inst.selector.rows = selector;
		inst.selector.opts = opts;
	
		return inst;
	} );
	
	_api_register( 'rows().nodes()', function () {
		return this.iterator( 'row', function ( settings, row ) {
			return settings.aoData[ row ].nTr || undefined;
		}, 1 );
	} );
	
	_api_register( 'rows().data()', function () {
		return this.iterator( true, 'rows', function ( settings, rows ) {
			return _pluck_order( settings.aoData, rows, '_aData' );
		}, 1 );
	} );
	
	_api_registerPlural( 'rows().cache()', 'row().cache()', function ( type ) {
		return this.iterator( 'row', function ( settings, row ) {
			var r = settings.aoData[ row ];
			return type === 'search' ? r._aFilterData : r._aSortData;
		}, 1 );
	} );
	
	_api_registerPlural( 'rows().invalidate()', 'row().invalidate()', function ( src ) {
		return this.iterator( 'row', function ( settings, row ) {
			_fnInvalidate( settings, row, src );
		} );
	} );
	
	_api_registerPlural( 'rows().indexes()', 'row().index()', function () {
		return this.iterator( 'row', function ( settings, row ) {
			return row;
		}, 1 );
	} );
	
	_api_registerPlural( 'rows().ids()', 'row().id()', function ( hash ) {
		var a = [];
		var context = this.context;
	
		// `iterator` will drop undefined values, but in this case we want them
		for ( var i=0, ien=context.length ; i<ien ; i++ ) {
			for ( var j=0, jen=this[i].length ; j<jen ; j++ ) {
				var id = context[i].rowIdFn( context[i].aoData[ this[i][j] ]._aData );
				a.push( (hash === true ? '#' : '' )+ id );
			}
		}
	
		return new _Api( context, a );
	} );
	
	_api_registerPlural( 'rows().remove()', 'row().remove()', function () {
		var that = this;
	
		this.iterator( 'row', function ( settings, row, thatIdx ) {
			var data = settings.aoData;
			var rowData = data[ row ];
			var i, ien, j, jen;
			var loopRow, loopCells;
	
			data.splice( row, 1 );
	
			// Update the cached indexes
			for ( i=0, ien=data.length ; i<ien ; i++ ) {
				loopRow = data[i];
				loopCells = loopRow.anCells;
	
				// Rows
				if ( loopRow.nTr !== null ) {
					loopRow.nTr._DT_RowIndex = i;
				}
	
				// Cells
				if ( loopCells !== null ) {
					for ( j=0, jen=loopCells.length ; j<jen ; j++ ) {
						loopCells[j]._DT_CellIndex.row = i;
					}
				}
			}
	
			// Delete from the display arrays
			_fnDeleteIndex( settings.aiDisplayMaster, row );
			_fnDeleteIndex( settings.aiDisplay, row );
			_fnDeleteIndex( that[ thatIdx ], row, false ); // maintain local indexes
	
			// For server-side processing tables - subtract the deleted row from the count
			if ( settings._iRecordsDisplay > 0 ) {
				settings._iRecordsDisplay--;
			}
	
			// Check for an 'overflow' they case for displaying the table
			_fnLengthOverflow( settings );
	
			// Remove the row's ID reference if there is one
			var id = settings.rowIdFn( rowData._aData );
			if ( id !== undefined ) {
				delete settings.aIds[ id ];
			}
		} );
	
		this.iterator( 'table', function ( settings ) {
			for ( var i=0, ien=settings.aoData.length ; i<ien ; i++ ) {
				settings.aoData[i].idx = i;
			}
		} );
	
		return this;
	} );
	
	
	_api_register( 'rows.add()', function ( rows ) {
		var newRows = this.iterator( 'table', function ( settings ) {
				var row, i, ien;
				var out = [];
	
				for ( i=0, ien=rows.length ; i<ien ; i++ ) {
					row = rows[i];
	
					if ( row.nodeName && row.nodeName.toUpperCase() === 'TR' ) {
						out.push( _fnAddTr( settings, row )[0] );
					}
					else {
						out.push( _fnAddData( settings, row ) );
					}
				}
	
				return out;
			}, 1 );
	
		// Return an Api.rows() extended instance, so rows().nodes() etc can be used
		var modRows = this.rows( -1 );
		modRows.pop();
		$.merge( modRows, newRows );
	
		return modRows;
	} );
	
	
	
	
	
	/**
	 *
	 */
	_api_register( 'row()', function ( selector, opts ) {
		return _selector_first( this.rows( selector, opts ) );
	} );
	
	
	_api_register( 'row().data()', function ( data ) {
		var ctx = this.context;
	
		if ( data === undefined ) {
			// Get
			return ctx.length && this.length ?
				ctx[0].aoData[ this[0] ]._aData :
				undefined;
		}
	
		// Set
		var row = ctx[0].aoData[ this[0] ];
		row._aData = data;
	
		// If the DOM has an id, and the data source is an array
		if ( $.isArray( data ) && row.nTr.id ) {
			_fnSetObjectDataFn( ctx[0].rowId )( data, row.nTr.id );
		}
	
		// Automatically invalidate
		_fnInvalidate( ctx[0], this[0], 'data' );
	
		return this;
	} );
	
	
	_api_register( 'row().node()', function () {
		var ctx = this.context;
	
		return ctx.length && this.length ?
			ctx[0].aoData[ this[0] ].nTr || null :
			null;
	} );
	
	
	_api_register( 'row.add()', function ( row ) {
		// Allow a jQuery object to be passed in - only a single row is added from
		// it though - the first element in the set
		if ( row instanceof $ && row.length ) {
			row = row[0];
		}
	
		var rows = this.iterator( 'table', function ( settings ) {
			if ( row.nodeName && row.nodeName.toUpperCase() === 'TR' ) {
				return _fnAddTr( settings, row )[0];
			}
			return _fnAddData( settings, row );
		} );
	
		// Return an Api.rows() extended instance, with the newly added row selected
		return this.row( rows[0] );
	} );
	
	
	
	var __details_add = function ( ctx, row, data, klass )
	{
		// Convert to array of TR elements
		var rows = [];
		var addRow = function ( r, k ) {
			// Recursion to allow for arrays of jQuery objects
			if ( $.isArray( r ) || r instanceof $ ) {
				for ( var i=0, ien=r.length ; i<ien ; i++ ) {
					addRow( r[i], k );
				}
				return;
			}
	
			// If we get a TR element, then just add it directly - up to the dev
			// to add the correct number of columns etc
			if ( r.nodeName && r.nodeName.toLowerCase() === 'tr' ) {
				rows.push( r );
			}
			else {
				// Otherwise create a row with a wrapper
				var created = $('<tr><td/></tr>').addClass( k );
				$('td', created)
					.addClass( k )
					.html( r )
					[0].colSpan = _fnVisbleColumns( ctx );
	
				rows.push( created[0] );
			}
		};
	
		addRow( data, klass );
	
		if ( row._details ) {
			row._details.detach();
		}
	
		row._details = $(rows);
	
		// If the children were already shown, that state should be retained
		if ( row._detailsShow ) {
			row._details.insertAfter( row.nTr );
		}
	};
	
	
	var __details_remove = function ( api, idx )
	{
		var ctx = api.context;
	
		if ( ctx.length ) {
			var row = ctx[0].aoData[ idx !== undefined ? idx : api[0] ];
	
			if ( row && row._details ) {
				row._details.remove();
	
				row._detailsShow = undefined;
				row._details = undefined;
			}
		}
	};
	
	
	var __details_display = function ( api, show ) {
		var ctx = api.context;
	
		if ( ctx.length && api.length ) {
			var row = ctx[0].aoData[ api[0] ];
	
			if ( row._details ) {
				row._detailsShow = show;
	
				if ( show ) {
					row._details.insertAfter( row.nTr );
				}
				else {
					row._details.detach();
				}
	
				__details_events( ctx[0] );
			}
		}
	};
	
	
	var __details_events = function ( settings )
	{
		var api = new _Api( settings );
		var namespace = '.dt.DT_details';
		var drawEvent = 'draw'+namespace;
		var colvisEvent = 'column-visibility'+namespace;
		var destroyEvent = 'destroy'+namespace;
		var data = settings.aoData;
	
		api.off( drawEvent +' '+ colvisEvent +' '+ destroyEvent );
	
		if ( _pluck( data, '_details' ).length > 0 ) {
			// On each draw, insert the required elements into the document
			api.on( drawEvent, function ( e, ctx ) {
				if ( settings !== ctx ) {
					return;
				}
	
				api.rows( {page:'current'} ).eq(0).each( function (idx) {
					// Internal data grab
					var row = data[ idx ];
	
					if ( row._detailsShow ) {
						row._details.insertAfter( row.nTr );
					}
				} );
			} );
	
			// Column visibility change - update the colspan
			api.on( colvisEvent, function ( e, ctx, idx, vis ) {
				if ( settings !== ctx ) {
					return;
				}
	
				// Update the colspan for the details rows (note, only if it already has
				// a colspan)
				var row, visible = _fnVisbleColumns( ctx );
	
				for ( var i=0, ien=data.length ; i<ien ; i++ ) {
					row = data[i];
	
					if ( row._details ) {
						row._details.children('td[colspan]').attr('colspan', visible );
					}
				}
			} );
	
			// Table destroyed - nuke any child rows
			api.on( destroyEvent, function ( e, ctx ) {
				if ( settings !== ctx ) {
					return;
				}
	
				for ( var i=0, ien=data.length ; i<ien ; i++ ) {
					if ( data[i]._details ) {
						__details_remove( api, i );
					}
				}
			} );
		}
	};
	
	// Strings for the method names to help minification
	var _emp = '';
	var _child_obj = _emp+'row().child';
	var _child_mth = _child_obj+'()';
	
	// data can be:
	//  tr
	//  string
	//  jQuery or array of any of the above
	_api_register( _child_mth, function ( data, klass ) {
		var ctx = this.context;
	
		if ( data === undefined ) {
			// get
			return ctx.length && this.length ?
				ctx[0].aoData[ this[0] ]._details :
				undefined;
		}
		else if ( data === true ) {
			// show
			this.child.show();
		}
		else if ( data === false ) {
			// remove
			__details_remove( this );
		}
		else if ( ctx.length && this.length ) {
			// set
			__details_add( ctx[0], ctx[0].aoData[ this[0] ], data, klass );
		}
	
		return this;
	} );
	
	
	_api_register( [
		_child_obj+'.show()',
		_child_mth+'.show()' // only when `child()` was called with parameters (without
	], function ( show ) {   // it returns an object and this method is not executed)
		__details_display( this, true );
		return this;
	} );
	
	
	_api_register( [
		_child_obj+'.hide()',
		_child_mth+'.hide()' // only when `child()` was called with parameters (without
	], function () {         // it returns an object and this method is not executed)
		__details_display( this, false );
		return this;
	} );
	
	
	_api_register( [
		_child_obj+'.remove()',
		_child_mth+'.remove()' // only when `child()` was called with parameters (without
	], function () {           // it returns an object and this method is not executed)
		__details_remove( this );
		return this;
	} );
	
	
	_api_register( _child_obj+'.isShown()', function () {
		var ctx = this.context;
	
		if ( ctx.length && this.length ) {
			// _detailsShown as false or undefined will fall through to return false
			return ctx[0].aoData[ this[0] ]._detailsShow || false;
		}
		return false;
	} );
	
	
	
	/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
	 * Columns
	 *
	 * {integer}           - column index (>=0 count from left, <0 count from right)
	 * "{integer}:visIdx"  - visible column index (i.e. translate to column index)  (>=0 count from left, <0 count from right)
	 * "{integer}:visible" - alias for {integer}:visIdx  (>=0 count from left, <0 count from right)
	 * "{string}:name"     - column name
	 * "{string}"          - jQuery selector on column header nodes
	 *
	 */
	
	// can be an array of these items, comma separated list, or an array of comma
	// separated lists
	
	var __re_column_selector = /^([^:]+):(name|visIdx|visible)$/;
	
	
	// r1 and r2 are redundant - but it means that the parameters match for the
	// iterator callback in columns().data()
	var __columnData = function ( settings, column, r1, r2, rows ) {
		var a = [];
		for ( var row=0, ien=rows.length ; row<ien ; row++ ) {
			a.push( _fnGetCellData( settings, rows[row], column ) );
		}
		return a;
	};
	
	
	var __column_selector = function ( settings, selector, opts )
	{
		var
			columns = settings.aoColumns,
			names = _pluck( columns, 'sName' ),
			nodes = _pluck( columns, 'nTh' );
	
		var run = function ( s ) {
			var selInt = _intVal( s );
	
			// Selector - all
			if ( s === '' ) {
				return _range( columns.length );
			}
	
			// Selector - index
			if ( selInt !== null ) {
				return [ selInt >= 0 ?
					selInt : // Count from left
					columns.length + selInt // Count from right (+ because its a negative value)
				];
			}
	
			// Selector = function
			if ( typeof s === 'function' ) {
				var rows = _selector_row_indexes( settings, opts );
	
				return $.map( columns, function (col, idx) {
					return s(
							idx,
							__columnData( settings, idx, 0, 0, rows ),
							nodes[ idx ]
						) ? idx : null;
				} );
			}
	
			// jQuery or string selector
			var match = typeof s === 'string' ?
				s.match( __re_column_selector ) :
				'';
	
			if ( match ) {
				switch( match[2] ) {
					case 'visIdx':
					case 'visible':
						var idx = parseInt( match[1], 10 );
						// Visible index given, convert to column index
						if ( idx < 0 ) {
							// Counting from the right
							var visColumns = $.map( columns, function (col,i) {
								return col.bVisible ? i : null;
							} );
							return [ visColumns[ visColumns.length + idx ] ];
						}
						// Counting from the left
						return [ _fnVisibleToColumnIndex( settings, idx ) ];
	
					case 'name':
						// match by name. `names` is column index complete and in order
						return $.map( names, function (name, i) {
							return name === match[1] ? i : null;
						} );
	
					default:
						return [];
				}
			}
	
			// Cell in the table body
			if ( s.nodeName && s._DT_CellIndex ) {
				return [ s._DT_CellIndex.column ];
			}
	
			// jQuery selector on the TH elements for the columns
			var jqResult = $( nodes )
				.filter( s )
				.map( function () {
					return $.inArray( this, nodes ); // `nodes` is column index complete and in order
				} )
				.toArray();
	
			if ( jqResult.length || ! s.nodeName ) {
				return jqResult;
			}
	
			// Otherwise a node which might have a `dt-column` data attribute, or be
			// a child or such an element
			var host = $(s).closest('*[data-dt-column]');
			return host.length ?
				[ host.data('dt-column') ] :
				[];
		};
	
		return _selector_run( 'column', selector, run, settings, opts );
	};
	
	
	var __setColumnVis = function ( settings, column, vis ) {
		var
			cols = settings.aoColumns,
			col  = cols[ column ],
			data = settings.aoData,
			row, cells, i, ien, tr;
	
		// Get
		if ( vis === undefined ) {
			return col.bVisible;
		}
	
		// Set
		// No change
		if ( col.bVisible === vis ) {
			return;
		}
	
		if ( vis ) {
			// Insert column
			// Need to decide if we should use appendChild or insertBefore
			var insertBefore = $.inArray( true, _pluck(cols, 'bVisible'), column+1 );
	
			for ( i=0, ien=data.length ; i<ien ; i++ ) {
				tr = data[i].nTr;
				cells = data[i].anCells;
	
				if ( tr ) {
					// insertBefore can act like appendChild if 2nd arg is null
					tr.insertBefore( cells[ column ], cells[ insertBefore ] || null );
				}
			}
		}
		else {
			// Remove column
			$( _pluck( settings.aoData, 'anCells', column ) ).detach();
		}
	
		// Common actions
		col.bVisible = vis;
		_fnDrawHead( settings, settings.aoHeader );
		_fnDrawHead( settings, settings.aoFooter );
	
		// Update colspan for no records display. Child rows and extensions will use their own
		// listeners to do this - only need to update the empty table item here
		if ( ! settings.aiDisplay.length ) {
			$(settings.nTBody).find('td[colspan]').attr('colspan', _fnVisbleColumns(settings));
		}
	
		_fnSaveState( settings );
	};
	
	
	_api_register( 'columns()', function ( selector, opts ) {
		// argument shifting
		if ( selector === undefined ) {
			selector = '';
		}
		else if ( $.isPlainObject( selector ) ) {
			opts = selector;
			selector = '';
		}
	
		opts = _selector_opts( opts );
	
		var inst = this.iterator( 'table', function ( settings ) {
			return __column_selector( settings, selector, opts );
		}, 1 );
	
		// Want argument shifting here and in _row_selector?
		inst.selector.cols = selector;
		inst.selector.opts = opts;
	
		return inst;
	} );
	
	_api_registerPlural( 'columns().header()', 'column().header()', function ( selector, opts ) {
		return this.iterator( 'column', function ( settings, column ) {
			return settings.aoColumns[column].nTh;
		}, 1 );
	} );
	
	_api_registerPlural( 'columns().footer()', 'column().footer()', function ( selector, opts ) {
		return this.iterator( 'column', function ( settings, column ) {
			return settings.aoColumns[column].nTf;
		}, 1 );
	} );
	
	_api_registerPlural( 'columns().data()', 'column().data()', function () {
		return this.iterator( 'column-rows', __columnData, 1 );
	} );
	
	_api_registerPlural( 'columns().dataSrc()', 'column().dataSrc()', function () {
		return this.iterator( 'column', function ( settings, column ) {
			return settings.aoColumns[column].mData;
		}, 1 );
	} );
	
	_api_registerPlural( 'columns().cache()', 'column().cache()', function ( type ) {
		return this.iterator( 'column-rows', function ( settings, column, i, j, rows ) {
			return _pluck_order( settings.aoData, rows,
				type === 'search' ? '_aFilterData' : '_aSortData', column
			);
		}, 1 );
	} );
	
	_api_registerPlural( 'columns().nodes()', 'column().nodes()', function () {
		return this.iterator( 'column-rows', function ( settings, column, i, j, rows ) {
			return _pluck_order( settings.aoData, rows, 'anCells', column ) ;
		}, 1 );
	} );
	
	_api_registerPlural( 'columns().visible()', 'column().visible()', function ( vis, calc ) {
		var ret = this.iterator( 'column', function ( settings, column ) {
			if ( vis === undefined ) {
				return settings.aoColumns[ column ].bVisible;
			} // else
			__setColumnVis( settings, column, vis );
		} );
	
		// Group the column visibility changes
		if ( vis !== undefined ) {
			// Second loop once the first is done for events
			this.iterator( 'column', function ( settings, column ) {
				_fnCallbackFire( settings, null, 'column-visibility', [settings, column, vis, calc] );
			} );
	
			if ( calc === undefined || calc ) {
				this.columns.adjust();
			}
		}
	
		return ret;
	} );
	
	_api_registerPlural( 'columns().indexes()', 'column().index()', function ( type ) {
		return this.iterator( 'column', function ( settings, column ) {
			return type === 'visible' ?
				_fnColumnIndexToVisible( settings, column ) :
				column;
		}, 1 );
	} );
	
	_api_register( 'columns.adjust()', function () {
		return this.iterator( 'table', function ( settings ) {
			_fnAdjustColumnSizing( settings );
		}, 1 );
	} );
	
	_api_register( 'column.index()', function ( type, idx ) {
		if ( this.context.length !== 0 ) {
			var ctx = this.context[0];
	
			if ( type === 'fromVisible' || type === 'toData' ) {
				return _fnVisibleToColumnIndex( ctx, idx );
			}
			else if ( type === 'fromData' || type === 'toVisible' ) {
				return _fnColumnIndexToVisible( ctx, idx );
			}
		}
	} );
	
	_api_register( 'column()', function ( selector, opts ) {
		return _selector_first( this.columns( selector, opts ) );
	} );
	
	
	
	var __cell_selector = function ( settings, selector, opts )
	{
		var data = settings.aoData;
		var rows = _selector_row_indexes( settings, opts );
		var cells = _removeEmpty( _pluck_order( data, rows, 'anCells' ) );
		var allCells = $( [].concat.apply([], cells) );
		var row;
		var columns = settings.aoColumns.length;
		var a, i, ien, j, o, host;
	
		var run = function ( s ) {
			var fnSelector = typeof s === 'function';
	
			if ( s === null || s === undefined || fnSelector ) {
				// All cells and function selectors
				a = [];
	
				for ( i=0, ien=rows.length ; i<ien ; i++ ) {
					row = rows[i];
	
					for ( j=0 ; j<columns ; j++ ) {
						o = {
							row: row,
							column: j
						};
	
						if ( fnSelector ) {
							// Selector - function
							host = data[ row ];
	
							if ( s( o, _fnGetCellData(settings, row, j), host.anCells ? host.anCells[j] : null ) ) {
								a.push( o );
							}
						}
						else {
							// Selector - all
							a.push( o );
						}
					}
				}
	
				return a;
			}
			
			// Selector - index
			if ( $.isPlainObject( s ) ) {
				// Valid cell index and its in the array of selectable rows
				return s.column !== undefined && s.row !== undefined && $.inArray( s.row, rows ) !== -1 ?
					[s] :
					[];
			}
	
			// Selector - jQuery filtered cells
			var jqResult = allCells
				.filter( s )
				.map( function (i, el) {
					return { // use a new object, in case someone changes the values
						row:    el._DT_CellIndex.row,
						column: el._DT_CellIndex.column
	 				};
				} )
				.toArray();
	
			if ( jqResult.length || ! s.nodeName ) {
				return jqResult;
			}
	
			// Otherwise the selector is a node, and there is one last option - the
			// element might be a child of an element which has dt-row and dt-column
			// data attributes
			host = $(s).closest('*[data-dt-row]');
			return host.length ?
				[ {
					row: host.data('dt-row'),
					column: host.data('dt-column')
				} ] :
				[];
		};
	
		return _selector_run( 'cell', selector, run, settings, opts );
	};
	
	
	
	
	_api_register( 'cells()', function ( rowSelector, columnSelector, opts ) {
		// Argument shifting
		if ( $.isPlainObject( rowSelector ) ) {
			// Indexes
			if ( rowSelector.row === undefined ) {
				// Selector options in first parameter
				opts = rowSelector;
				rowSelector = null;
			}
			else {
				// Cell index objects in first parameter
				opts = columnSelector;
				columnSelector = null;
			}
		}
		if ( $.isPlainObject( columnSelector ) ) {
			opts = columnSelector;
			columnSelector = null;
		}
	
		// Cell selector
		if ( columnSelector === null || columnSelector === undefined ) {
			return this.iterator( 'table', function ( settings ) {
				return __cell_selector( settings, rowSelector, _selector_opts( opts ) );
			} );
		}
	
		// Row + column selector
		var columns = this.columns( columnSelector );
		var rows = this.rows( rowSelector );
		var a, i, ien, j, jen;
	
		this.iterator( 'table', function ( settings, idx ) {
			a = [];
	
			for ( i=0, ien=rows[idx].length ; i<ien ; i++ ) {
				for ( j=0, jen=columns[idx].length ; j<jen ; j++ ) {
					a.push( {
						row:    rows[idx][i],
						column: columns[idx][j]
					} );
				}
			}
		}, 1 );
	
	    // Now pass through the cell selector for options
	    var cells = this.cells( a, opts );
	
		$.extend( cells.selector, {
			cols: columnSelector,
			rows: rowSelector,
			opts: opts
		} );
	
		return cells;
	} );
	
	
	_api_registerPlural( 'cells().nodes()', 'cell().node()', function () {
		return this.iterator( 'cell', function ( settings, row, column ) {
			var data = settings.aoData[ row ];
	
			return data && data.anCells ?
				data.anCells[ column ] :
				undefined;
		}, 1 );
	} );
	
	
	_api_register( 'cells().data()', function () {
		return this.iterator( 'cell', function ( settings, row, column ) {
			return _fnGetCellData( settings, row, column );
		}, 1 );
	} );
	
	
	_api_registerPlural( 'cells().cache()', 'cell().cache()', function ( type ) {
		type = type === 'search' ? '_aFilterData' : '_aSortData';
	
		return this.iterator( 'cell', function ( settings, row, column ) {
			return settings.aoData[ row ][ type ][ column ];
		}, 1 );
	} );
	
	
	_api_registerPlural( 'cells().render()', 'cell().render()', function ( type ) {
		return this.iterator( 'cell', function ( settings, row, column ) {
			return _fnGetCellData( settings, row, column, type );
		}, 1 );
	} );
	
	
	_api_registerPlural( 'cells().indexes()', 'cell().index()', function () {
		return this.iterator( 'cell', function ( settings, row, column ) {
			return {
				row: row,
				column: column,
				columnVisible: _fnColumnIndexToVisible( settings, column )
			};
		}, 1 );
	} );
	
	
	_api_registerPlural( 'cells().invalidate()', 'cell().invalidate()', function ( src ) {
		return this.iterator( 'cell', function ( settings, row, column ) {
			_fnInvalidate( settings, row, src, column );
		} );
	} );
	
	
	
	_api_register( 'cell()', function ( rowSelector, columnSelector, opts ) {
		return _selector_first( this.cells( rowSelector, columnSelector, opts ) );
	} );
	
	
	_api_register( 'cell().data()', function ( data ) {
		var ctx = this.context;
		var cell = this[0];
	
		if ( data === undefined ) {
			// Get
			return ctx.length && cell.length ?
				_fnGetCellData( ctx[0], cell[0].row, cell[0].column ) :
				undefined;
		}
	
		// Set
		_fnSetCellData( ctx[0], cell[0].row, cell[0].column, data );
		_fnInvalidate( ctx[0], cell[0].row, 'data', cell[0].column );
	
		return this;
	} );
	
	
	
	/**
	 * Get current ordering (sorting) that has been applied to the table.
	 *
	 * @returns {array} 2D array containing the sorting information for the first
	 *   table in the current context. Each element in the parent array represents
	 *   a column being sorted upon (i.e. multi-sorting with two columns would have
	 *   2 inner arrays). The inner arrays may have 2 or 3 elements. The first is
	 *   the column index that the sorting condition applies to, the second is the
	 *   direction of the sort (`desc` or `asc`) and, optionally, the third is the
	 *   index of the sorting order from the `column.sorting` initialisation array.
	 *//**
	 * Set the ordering for the table.
	 *
	 * @param {integer} order Column index to sort upon.
	 * @param {string} direction Direction of the sort to be applied (`asc` or `desc`)
	 * @returns {DataTables.Api} this
	 *//**
	 * Set the ordering for the table.
	 *
	 * @param {array} order 1D array of sorting information to be applied.
	 * @param {array} [...] Optional additional sorting conditions
	 * @returns {DataTables.Api} this
	 *//**
	 * Set the ordering for the table.
	 *
	 * @param {array} order 2D array of sorting information to be applied.
	 * @returns {DataTables.Api} this
	 */
	_api_register( 'order()', function ( order, dir ) {
		var ctx = this.context;
	
		if ( order === undefined ) {
			// get
			return ctx.length !== 0 ?
				ctx[0].aaSorting :
				undefined;
		}
	
		// set
		if ( typeof order === 'number' ) {
			// Simple column / direction passed in
			order = [ [ order, dir ] ];
		}
		else if ( order.length && ! $.isArray( order[0] ) ) {
			// Arguments passed in (list of 1D arrays)
			order = Array.prototype.slice.call( arguments );
		}
		// otherwise a 2D array was passed in
	
		return this.iterator( 'table', function ( settings ) {
			settings.aaSorting = order.slice();
		} );
	} );
	
	
	/**
	 * Attach a sort listener to an element for a given column
	 *
	 * @param {node|jQuery|string} node Identifier for the element(s) to attach the
	 *   listener to. This can take the form of a single DOM node, a jQuery
	 *   collection of nodes or a jQuery selector which will identify the node(s).
	 * @param {integer} column the column that a click on this node will sort on
	 * @param {function} [callback] callback function when sort is run
	 * @returns {DataTables.Api} this
	 */
	_api_register( 'order.listener()', function ( node, column, callback ) {
		return this.iterator( 'table', function ( settings ) {
			_fnSortAttachListener( settings, node, column, callback );
		} );
	} );
	
	
	_api_register( 'order.fixed()', function ( set ) {
		if ( ! set ) {
			var ctx = this.context;
			var fixed = ctx.length ?
				ctx[0].aaSortingFixed :
				undefined;
	
			return $.isArray( fixed ) ?
				{ pre: fixed } :
				fixed;
		}
	
		return this.iterator( 'table', function ( settings ) {
			settings.aaSortingFixed = $.extend( true, {}, set );
		} );
	} );
	
	
	// Order by the selected column(s)
	_api_register( [
		'columns().order()',
		'column().order()'
	], function ( dir ) {
		var that = this;
	
		return this.iterator( 'table', function ( settings, i ) {
			var sort = [];
	
			$.each( that[i], function (j, col) {
				sort.push( [ col, dir ] );
			} );
	
			settings.aaSorting = sort;
		} );
	} );
	
	
	
	_api_register( 'search()', function ( input, regex, smart, caseInsen ) {
		var ctx = this.context;
	
		if ( input === undefined ) {
			// get
			return ctx.length !== 0 ?
				ctx[0].oPreviousSearch.sSearch :
				undefined;
		}
	
		// set
		return this.iterator( 'table', function ( settings ) {
			if ( ! settings.oFeatures.bFilter ) {
				return;
			}
	
			_fnFilterComplete( settings, $.extend( {}, settings.oPreviousSearch, {
				"sSearch": input+"",
				"bRegex":  regex === null ? false : regex,
				"bSmart":  smart === null ? true  : smart,
				"bCaseInsensitive": caseInsen === null ? true : caseInsen
			} ), 1 );
		} );
	} );
	
	
	_api_registerPlural(
		'columns().search()',
		'column().search()',
		function ( input, regex, smart, caseInsen ) {
			return this.iterator( 'column', function ( settings, column ) {
				var preSearch = settings.aoPreSearchCols;
	
				if ( input === undefined ) {
					// get
					return preSearch[ column ].sSearch;
				}
	
				// set
				if ( ! settings.oFeatures.bFilter ) {
					return;
				}
	
				$.extend( preSearch[ column ], {
					"sSearch": input+"",
					"bRegex":  regex === null ? false : regex,
					"bSmart":  smart === null ? true  : smart,
					"bCaseInsensitive": caseInsen === null ? true : caseInsen
				} );
	
				_fnFilterComplete( settings, settings.oPreviousSearch, 1 );
			} );
		}
	);
	
	/*
	 * State API methods
	 */
	
	_api_register( 'state()', function () {
		return this.context.length ?
			this.context[0].oSavedState :
			null;
	} );
	
	
	_api_register( 'state.clear()', function () {
		return this.iterator( 'table', function ( settings ) {
			// Save an empty object
			settings.fnStateSaveCallback.call( settings.oInstance, settings, {} );
		} );
	} );
	
	
	_api_register( 'state.loaded()', function () {
		return this.context.length ?
			this.context[0].oLoadedState :
			null;
	} );
	
	
	_api_register( 'state.save()', function () {
		return this.iterator( 'table', function ( settings ) {
			_fnSaveState( settings );
		} );
	} );
	
	
	
	/**
	 * Provide a common method for plug-ins to check the version of DataTables being
	 * used, in order to ensure compatibility.
	 *
	 *  @param {string} version Version string to check for, in the format "X.Y.Z".
	 *    Note that the formats "X" and "X.Y" are also acceptable.
	 *  @returns {boolean} true if this version of DataTables is greater or equal to
	 *    the required version, or false if this version of DataTales is not
	 *    suitable
	 *  @static
	 *  @dtopt API-Static
	 *
	 *  @example
	 *    alert( $.fn.dataTable.versionCheck( '1.9.0' ) );
	 */
	DataTable.versionCheck = DataTable.fnVersionCheck = function( version )
	{
		var aThis = DataTable.version.split('.');
		var aThat = version.split('.');
		var iThis, iThat;
	
		for ( var i=0, iLen=aThat.length ; i<iLen ; i++ ) {
			iThis = parseInt( aThis[i], 10 ) || 0;
			iThat = parseInt( aThat[i], 10 ) || 0;
	
			// Parts are the same, keep comparing
			if (iThis === iThat) {
				continue;
			}
	
			// Parts are different, return immediately
			return iThis > iThat;
		}
	
		return true;
	};
	
	
	/**
	 * Check if a `<table>` node is a DataTable table already or not.
	 *
	 *  @param {node|jquery|string} table Table node, jQuery object or jQuery
	 *      selector for the table to test. Note that if more than more than one
	 *      table is passed on, only the first will be checked
	 *  @returns {boolean} true the table given is a DataTable, or false otherwise
	 *  @static
	 *  @dtopt API-Static
	 *
	 *  @example
	 *    if ( ! $.fn.DataTable.isDataTable( '#example' ) ) {
	 *      $('#example').dataTable();
	 *    }
	 */
	DataTable.isDataTable = DataTable.fnIsDataTable = function ( table )
	{
		var t = $(table).get(0);
		var is = false;
	
		if ( table instanceof DataTable.Api ) {
			return true;
		}
	
		$.each( DataTable.settings, function (i, o) {
			var head = o.nScrollHead ? $('table', o.nScrollHead)[0] : null;
			var foot = o.nScrollFoot ? $('table', o.nScrollFoot)[0] : null;
	
			if ( o.nTable === t || head === t || foot === t ) {
				is = true;
			}
		} );
	
		return is;
	};
	
	
	/**
	 * Get all DataTable tables that have been initialised - optionally you can
	 * select to get only currently visible tables.
	 *
	 *  @param {boolean} [visible=false] Flag to indicate if you want all (default)
	 *    or visible tables only.
	 *  @returns {array} Array of `table` nodes (not DataTable instances) which are
	 *    DataTables
	 *  @static
	 *  @dtopt API-Static
	 *
	 *  @example
	 *    $.each( $.fn.dataTable.tables(true), function () {
	 *      $(table).DataTable().columns.adjust();
	 *    } );
	 */
	DataTable.tables = DataTable.fnTables = function ( visible )
	{
		var api = false;
	
		if ( $.isPlainObject( visible ) ) {
			api = visible.api;
			visible = visible.visible;
		}
	
		var a = $.map( DataTable.settings, function (o) {
			if ( !visible || (visible && $(o.nTable).is(':visible')) ) {
				return o.nTable;
			}
		} );
	
		return api ?
			new _Api( a ) :
			a;
	};
	
	
	/**
	 * Convert from camel case parameters to Hungarian notation. This is made public
	 * for the extensions to provide the same ability as DataTables core to accept
	 * either the 1.9 style Hungarian notation, or the 1.10+ style camelCase
	 * parameters.
	 *
	 *  @param {object} src The model object which holds all parameters that can be
	 *    mapped.
	 *  @param {object} user The object to convert from camel case to Hungarian.
	 *  @param {boolean} force When set to `true`, properties which already have a
	 *    Hungarian value in the `user` object will be overwritten. Otherwise they
	 *    won't be.
	 */
	DataTable.camelToHungarian = _fnCamelToHungarian;
	
	
	
	/**
	 *
	 */
	_api_register( '$()', function ( selector, opts ) {
		var
			rows   = this.rows( opts ).nodes(), // Get all rows
			jqRows = $(rows);
	
		return $( [].concat(
			jqRows.filter( selector ).toArray(),
			jqRows.find( selector ).toArray()
		) );
	} );
	
	
	// jQuery functions to operate on the tables
	$.each( [ 'on', 'one', 'off' ], function (i, key) {
		_api_register( key+'()', function ( /* event, handler */ ) {
			var args = Array.prototype.slice.call(arguments);
	
			// Add the `dt` namespace automatically if it isn't already present
			args[0] = $.map( args[0].split( /\s/ ), function ( e ) {
				return ! e.match(/\.dt\b/) ?
					e+'.dt' :
					e;
				} ).join( ' ' );
	
			var inst = $( this.tables().nodes() );
			inst[key].apply( inst, args );
			return this;
		} );
	} );
	
	
	_api_register( 'clear()', function () {
		return this.iterator( 'table', function ( settings ) {
			_fnClearTable( settings );
		} );
	} );
	
	
	_api_register( 'settings()', function () {
		return new _Api( this.context, this.context );
	} );
	
	
	_api_register( 'init()', function () {
		var ctx = this.context;
		return ctx.length ? ctx[0].oInit : null;
	} );
	
	
	_api_register( 'data()', function () {
		return this.iterator( 'table', function ( settings ) {
			return _pluck( settings.aoData, '_aData' );
		} ).flatten();
	} );
	
	
	_api_register( 'destroy()', function ( remove ) {
		remove = remove || false;
	
		return this.iterator( 'table', function ( settings ) {
			var orig      = settings.nTableWrapper.parentNode;
			var classes   = settings.oClasses;
			var table     = settings.nTable;
			var tbody     = settings.nTBody;
			var thead     = settings.nTHead;
			var tfoot     = settings.nTFoot;
			var jqTable   = $(table);
			var jqTbody   = $(tbody);
			var jqWrapper = $(settings.nTableWrapper);
			var rows      = $.map( settings.aoData, function (r) { return r.nTr; } );
			var i, ien;
	
			// Flag to note that the table is currently being destroyed - no action
			// should be taken
			settings.bDestroying = true;
	
			// Fire off the destroy callbacks for plug-ins etc
			_fnCallbackFire( settings, "aoDestroyCallback", "destroy", [settings] );
	
			// If not being removed from the document, make all columns visible
			if ( ! remove ) {
				new _Api( settings ).columns().visible( true );
			}
	
			// Blitz all `DT` namespaced events (these are internal events, the
			// lowercase, `dt` events are user subscribed and they are responsible
			// for removing them
			jqWrapper.off('.DT').find(':not(tbody *)').off('.DT');
			$(window).off('.DT-'+settings.sInstance);
	
			// When scrolling we had to break the table up - restore it
			if ( table != thead.parentNode ) {
				jqTable.children('thead').detach();
				jqTable.append( thead );
			}
	
			if ( tfoot && table != tfoot.parentNode ) {
				jqTable.children('tfoot').detach();
				jqTable.append( tfoot );
			}
	
			settings.aaSorting = [];
			settings.aaSortingFixed = [];
			_fnSortingClasses( settings );
	
			$( rows ).removeClass( settings.asStripeClasses.join(' ') );
	
			$('th, td', thead).removeClass( classes.sSortable+' '+
				classes.sSortableAsc+' '+classes.sSortableDesc+' '+classes.sSortableNone
			);
	
			// Add the TR elements back into the table in their original order
			jqTbody.children().detach();
			jqTbody.append( rows );
	
			// Remove the DataTables generated nodes, events and classes
			var removedMethod = remove ? 'remove' : 'detach';
			jqTable[ removedMethod ]();
			jqWrapper[ removedMethod ]();
	
			// If we need to reattach the table to the document
			if ( ! remove && orig ) {
				// insertBefore acts like appendChild if !arg[1]
				orig.insertBefore( table, settings.nTableReinsertBefore );
	
				// Restore the width of the original table - was read from the style property,
				// so we can restore directly to that
				jqTable
					.css( 'width', settings.sDestroyWidth )
					.removeClass( classes.sTable );
	
				// If the were originally stripe classes - then we add them back here.
				// Note this is not fool proof (for example if not all rows had stripe
				// classes - but it's a good effort without getting carried away
				ien = settings.asDestroyStripes.length;
	
				if ( ien ) {
					jqTbody.children().each( function (i) {
						$(this).addClass( settings.asDestroyStripes[i % ien] );
					} );
				}
			}
	
			/* Remove the settings object from the settings array */
			var idx = $.inArray( settings, DataTable.settings );
			if ( idx !== -1 ) {
				DataTable.settings.splice( idx, 1 );
			}
		} );
	} );
	
	
	// Add the `every()` method for rows, columns and cells in a compact form
	$.each( [ 'column', 'row', 'cell' ], function ( i, type ) {
		_api_register( type+'s().every()', function ( fn ) {
			var opts = this.selector.opts;
			var api = this;
	
			return this.iterator( type, function ( settings, arg1, arg2, arg3, arg4 ) {
				// Rows and columns:
				//  arg1 - index
				//  arg2 - table counter
				//  arg3 - loop counter
				//  arg4 - undefined
				// Cells:
				//  arg1 - row index
				//  arg2 - column index
				//  arg3 - table counter
				//  arg4 - loop counter
				fn.call(
					api[ type ](
						arg1,
						type==='cell' ? arg2 : opts,
						type==='cell' ? opts : undefined
					),
					arg1, arg2, arg3, arg4
				);
			} );
		} );
	} );
	
	
	// i18n method for extensions to be able to use the language object from the
	// DataTable
	_api_register( 'i18n()', function ( token, def, plural ) {
		var ctx = this.context[0];
		var resolved = _fnGetObjectDataFn( token )( ctx.oLanguage );
	
		if ( resolved === undefined ) {
			resolved = def;
		}
	
		if ( plural !== undefined && $.isPlainObject( resolved ) ) {
			resolved = resolved[ plural ] !== undefined ?
				resolved[ plural ] :
				resolved._;
		}
	
		return resolved.replace( '%d', plural ); // nb: plural might be undefined,
	} );

	/**
	 * Version string for plug-ins to check compatibility. Allowed format is
	 * `a.b.c-d` where: a:int, b:int, c:int, d:string(dev|beta|alpha). `d` is used
	 * only for non-release builds. See http://semver.org/ for more information.
	 *  @member
	 *  @type string
	 *  @default Version number
	 */
	DataTable.version = "1.10.18";

	/**
	 * Private data store, containing all of the settings objects that are
	 * created for the tables on a given page.
	 *
	 * Note that the `DataTable.settings` object is aliased to
	 * `jQuery.fn.dataTableExt` through which it may be accessed and
	 * manipulated, or `jQuery.fn.dataTable.settings`.
	 *  @member
	 *  @type array
	 *  @default []
	 *  @private
	 */
	DataTable.settings = [];

	/**
	 * Object models container, for the various models that DataTables has
	 * available to it. These models define the objects that are used to hold
	 * the active state and configuration of the table.
	 *  @namespace
	 */
	DataTable.models = {};
	
	
	
	/**
	 * Template object for the way in which DataTables holds information about
	 * search information for the global filter and individual column filters.
	 *  @namespace
	 */
	DataTable.models.oSearch = {
		/**
		 * Flag to indicate if the filtering should be case insensitive or not
		 *  @type boolean
		 *  @default true
		 */
		"bCaseInsensitive": true,
	
		/**
		 * Applied search term
		 *  @type string
		 *  @default <i>Empty string</i>
		 */
		"sSearch": "",
	
		/**
		 * Flag to indicate if the search term should be interpreted as a
		 * regular expression (true) or not (false) and therefore and special
		 * regex characters escaped.
		 *  @type boolean
		 *  @default false
		 */
		"bRegex": false,
	
		/**
		 * Flag to indicate if DataTables is to use its smart filtering or not.
		 *  @type boolean
		 *  @default true
		 */
		"bSmart": true
	};
	
	
	
	
	/**
	 * Template object for the way in which DataTables holds information about
	 * each individual row. This is the object format used for the settings
	 * aoData array.
	 *  @namespace
	 */
	DataTable.models.oRow = {
		/**
		 * TR element for the row
		 *  @type node
		 *  @default null
		 */
		"nTr": null,
	
		/**
		 * Array of TD elements for each row. This is null until the row has been
		 * created.
		 *  @type array nodes
		 *  @default []
		 */
		"anCells": null,
	
		/**
		 * Data object from the original data source for the row. This is either
		 * an array if using the traditional form of DataTables, or an object if
		 * using mData options. The exact type will depend on the passed in
		 * data from the data source, or will be an array if using DOM a data
		 * source.
		 *  @type array|object
		 *  @default []
		 */
		"_aData": [],
	
		/**
		 * Sorting data cache - this array is ostensibly the same length as the
		 * number of columns (although each index is generated only as it is
		 * needed), and holds the data that is used for sorting each column in the
		 * row. We do this cache generation at the start of the sort in order that
		 * the formatting of the sort data need be done only once for each cell
		 * per sort. This array should not be read from or written to by anything
		 * other than the master sorting methods.
		 *  @type array
		 *  @default null
		 *  @private
		 */
		"_aSortData": null,
	
		/**
		 * Per cell filtering data cache. As per the sort data cache, used to
		 * increase the performance of the filtering in DataTables
		 *  @type array
		 *  @default null
		 *  @private
		 */
		"_aFilterData": null,
	
		/**
		 * Filtering data cache. This is the same as the cell filtering cache, but
		 * in this case a string rather than an array. This is easily computed with
		 * a join on `_aFilterData`, but is provided as a cache so the join isn't
		 * needed on every search (memory traded for performance)
		 *  @type array
		 *  @default null
		 *  @private
		 */
		"_sFilterRow": null,
	
		/**
		 * Cache of the class name that DataTables has applied to the row, so we
		 * can quickly look at this variable rather than needing to do a DOM check
		 * on className for the nTr property.
		 *  @type string
		 *  @default <i>Empty string</i>
		 *  @private
		 */
		"_sRowStripe": "",
	
		/**
		 * Denote if the original data source was from the DOM, or the data source
		 * object. This is used for invalidating data, so DataTables can
		 * automatically read data from the original source, unless uninstructed
		 * otherwise.
		 *  @type string
		 *  @default null
		 *  @private
		 */
		"src": null,
	
		/**
		 * Index in the aoData array. This saves an indexOf lookup when we have the
		 * object, but want to know the index
		 *  @type integer
		 *  @default -1
		 *  @private
		 */
		"idx": -1
	};
	
	
	/**
	 * Template object for the column information object in DataTables. This object
	 * is held in the settings aoColumns array and contains all the information that
	 * DataTables needs about each individual column.
	 *
	 * Note that this object is related to {@link DataTable.defaults.column}
	 * but this one is the internal data store for DataTables's cache of columns.
	 * It should NOT be manipulated outside of DataTables. Any configuration should
	 * be done through the initialisation options.
	 *  @namespace
	 */
	DataTable.models.oColumn = {
		/**
		 * Column index. This could be worked out on-the-fly with $.inArray, but it
		 * is faster to just hold it as a variable
		 *  @type integer
		 *  @default null
		 */
		"idx": null,
	
		/**
		 * A list of the columns that sorting should occur on when this column
		 * is sorted. That this property is an array allows multi-column sorting
		 * to be defined for a column (for example first name / last name columns
		 * would benefit from this). The values are integers pointing to the
		 * columns to be sorted on (typically it will be a single integer pointing
		 * at itself, but that doesn't need to be the case).
		 *  @type array
		 */
		"aDataSort": null,
	
		/**
		 * Define the sorting directions that are applied to the column, in sequence
		 * as the column is repeatedly sorted upon - i.e. the first value is used
		 * as the sorting direction when the column if first sorted (clicked on).
		 * Sort it again (click again) and it will move on to the next index.
		 * Repeat until loop.
		 *  @type array
		 */
		"asSorting": null,
	
		/**
		 * Flag to indicate if the column is searchable, and thus should be included
		 * in the filtering or not.
		 *  @type boolean
		 */
		"bSearchable": null,
	
		/**
		 * Flag to indicate if the column is sortable or not.
		 *  @type boolean
		 */
		"bSortable": null,
	
		/**
		 * Flag to indicate if the column is currently visible in the table or not
		 *  @type boolean
		 */
		"bVisible": null,
	
		/**
		 * Store for manual type assignment using the `column.type` option. This
		 * is held in store so we can manipulate the column's `sType` property.
		 *  @type string
		 *  @default null
		 *  @private
		 */
		"_sManualType": null,
	
		/**
		 * Flag to indicate if HTML5 data attributes should be used as the data
		 * source for filtering or sorting. True is either are.
		 *  @type boolean
		 *  @default false
		 *  @private
		 */
		"_bAttrSrc": false,
	
		/**
		 * Developer definable function that is called whenever a cell is created (Ajax source,
		 * etc) or processed for input (DOM source). This can be used as a compliment to mRender
		 * allowing you to modify the DOM element (add background colour for example) when the
		 * element is available.
		 *  @type function
		 *  @param {element} nTd The TD node that has been created
		 *  @param {*} sData The Data for the cell
		 *  @param {array|object} oData The data for the whole row
		 *  @param {int} iRow The row index for the aoData data store
		 *  @default null
		 */
		"fnCreatedCell": null,
	
		/**
		 * Function to get data from a cell in a column. You should <b>never</b>
		 * access data directly through _aData internally in DataTables - always use
		 * the method attached to this property. It allows mData to function as
		 * required. This function is automatically assigned by the column
		 * initialisation method
		 *  @type function
		 *  @param {array|object} oData The data array/object for the array
		 *    (i.e. aoData[]._aData)
		 *  @param {string} sSpecific The specific data type you want to get -
		 *    'display', 'type' 'filter' 'sort'
		 *  @returns {*} The data for the cell from the given row's data
		 *  @default null
		 */
		"fnGetData": null,
	
		/**
		 * Function to set data for a cell in the column. You should <b>never</b>
		 * set the data directly to _aData internally in DataTables - always use
		 * this method. It allows mData to function as required. This function
		 * is automatically assigned by the column initialisation method
		 *  @type function
		 *  @param {array|object} oData The data array/object for the array
		 *    (i.e. aoData[]._aData)
		 *  @param {*} sValue Value to set
		 *  @default null
		 */
		"fnSetData": null,
	
		/**
		 * Property to read the value for the cells in the column from the data
		 * source array / object. If null, then the default content is used, if a
		 * function is given then the return from the function is used.
		 *  @type function|int|string|null
		 *  @default null
		 */
		"mData": null,
	
		/**
		 * Partner property to mData which is used (only when defined) to get
		 * the data - i.e. it is basically the same as mData, but without the
		 * 'set' option, and also the data fed to it is the result from mData.
		 * This is the rendering method to match the data method of mData.
		 *  @type function|int|string|null
		 *  @default null
		 */
		"mRender": null,
	
		/**
		 * Unique header TH/TD element for this column - this is what the sorting
		 * listener is attached to (if sorting is enabled.)
		 *  @type node
		 *  @default null
		 */
		"nTh": null,
	
		/**
		 * Unique footer TH/TD element for this column (if there is one). Not used
		 * in DataTables as such, but can be used for plug-ins to reference the
		 * footer for each column.
		 *  @type node
		 *  @default null
		 */
		"nTf": null,
	
		/**
		 * The class to apply to all TD elements in the table's TBODY for the column
		 *  @type string
		 *  @default null
		 */
		"sClass": null,
	
		/**
		 * When DataTables calculates the column widths to assign to each column,
		 * it finds the longest string in each column and then constructs a
		 * temporary table and reads the widths from that. The problem with this
		 * is that "mmm" is much wider then "iiii", but the latter is a longer
		 * string - thus the calculation can go wrong (doing it properly and putting
		 * it into an DOM object and measuring that is horribly(!) slow). Thus as
		 * a "work around" we provide this option. It will append its value to the
		 * text that is found to be the longest string for the column - i.e. padding.
		 *  @type string
		 */
		"sContentPadding": null,
	
		/**
		 * Allows a default value to be given for a column's data, and will be used
		 * whenever a null data source is encountered (this can be because mData
		 * is set to null, or because the data source itself is null).
		 *  @type string
		 *  @default null
		 */
		"sDefaultContent": null,
	
		/**
		 * Name for the column, allowing reference to the column by name as well as
		 * by index (needs a lookup to work by name).
		 *  @type string
		 */
		"sName": null,
	
		/**
		 * Custom sorting data type - defines which of the available plug-ins in
		 * afnSortData the custom sorting will use - if any is defined.
		 *  @type string
		 *  @default std
		 */
		"sSortDataType": 'std',
	
		/**
		 * Class to be applied to the header element when sorting on this column
		 *  @type string
		 *  @default null
		 */
		"sSortingClass": null,
	
		/**
		 * Class to be applied to the header element when sorting on this column -
		 * when jQuery UI theming is used.
		 *  @type string
		 *  @default null
		 */
		"sSortingClassJUI": null,
	
		/**
		 * Title of the column - what is seen in the TH element (nTh).
		 *  @type string
		 */
		"sTitle": null,
	
		/**
		 * Column sorting and filtering type
		 *  @type string
		 *  @default null
		 */
		"sType": null,
	
		/**
		 * Width of the column
		 *  @type string
		 *  @default null
		 */
		"sWidth": null,
	
		/**
		 * Width of the column when it was first "encountered"
		 *  @type string
		 *  @default null
		 */
		"sWidthOrig": null
	};
	
	
	/*
	 * Developer note: The properties of the object below are given in Hungarian
	 * notation, that was used as the interface for DataTables prior to v1.10, however
	 * from v1.10 onwards the primary interface is camel case. In order to avoid
	 * breaking backwards compatibility utterly with this change, the Hungarian
	 * version is still, internally the primary interface, but is is not documented
	 * - hence the @name tags in each doc comment. This allows a Javascript function
	 * to create a map from Hungarian notation to camel case (going the other direction
	 * would require each property to be listed, which would at around 3K to the size
	 * of DataTables, while this method is about a 0.5K hit.
	 *
	 * Ultimately this does pave the way for Hungarian notation to be dropped
	 * completely, but that is a massive amount of work and will break current
	 * installs (therefore is on-hold until v2).
	 */
	
	/**
	 * Initialisation options that can be given to DataTables at initialisation
	 * time.
	 *  @namespace
	 */
	DataTable.defaults = {
		/**
		 * An array of data to use for the table, passed in at initialisation which
		 * will be used in preference to any data which is already in the DOM. This is
		 * particularly useful for constructing tables purely in Javascript, for
		 * example with a custom Ajax call.
		 *  @type array
		 *  @default null
		 *
		 *  @dtopt Option
		 *  @name DataTable.defaults.data
		 *
		 *  @example
		 *    // Using a 2D array data source
		 *    $(document).ready( function () {
		 *      $('#example').dataTable( {
		 *        "data": [
		 *          ['Trident', 'Internet Explorer 4.0', 'Win 95+', 4, 'X'],
		 *          ['Trident', 'Internet Explorer 5.0', 'Win 95+', 5, 'C'],
		 *        ],
		 *        "columns": [
		 *          { "title": "Engine" },
		 *          { "title": "Browser" },
		 *          { "title": "Platform" },
		 *          { "title": "Version" },
		 *          { "title": "Grade" }
		 *        ]
		 *      } );
		 *    } );
		 *
		 *  @example
		 *    // Using an array of objects as a data source (`data`)
		 *    $(document).ready( function () {
		 *      $('#example').dataTable( {
		 *        "data": [
		 *          {
		 *            "engine":   "Trident",
		 *            "browser":  "Internet Explorer 4.0",
		 *            "platform": "Win 95+",
		 *            "version":  4,
		 *            "grade":    "X"
		 *          },
		 *          {
		 *            "engine":   "Trident",
		 *            "browser":  "Internet Explorer 5.0",
		 *            "platform": "Win 95+",
		 *            "version":  5,
		 *            "grade":    "C"
		 *          }
		 *        ],
		 *        "columns": [
		 *          { "title": "Engine",   "data": "engine" },
		 *          { "title": "Browser",  "data": "browser" },
		 *          { "title": "Platform", "data": "platform" },
		 *          { "title": "Version",  "data": "version" },
		 *          { "title": "Grade",    "data": "grade" }
		 *        ]
		 *      } );
		 *    } );
		 */
		"aaData": null,
	
	
		/**
		 * If ordering is enabled, then DataTables will perform a first pass sort on
		 * initialisation. You can define which column(s) the sort is performed
		 * upon, and the sorting direction, with this variable. The `sorting` array
		 * should contain an array for each column to be sorted initially containing
		 * the column's index and a direction string ('asc' or 'desc').
		 *  @type array
		 *  @default [[0,'asc']]
		 *
		 *  @dtopt Option
		 *  @name DataTable.defaults.order
		 *
		 *  @example
		 *    // Sort by 3rd column first, and then 4th column
		 *    $(document).ready( function() {
		 *      $('#example').dataTable( {
		 *        "order": [[2,'asc'], [3,'desc']]
		 *      } );
		 *    } );
		 *
		 *    // No initial sorting
		 *    $(document).ready( function() {
		 *      $('#example').dataTable( {
		 *        "order": []
		 *      } );
		 *    } );
		 */
		"aaSorting": [[0,'asc']],
	
	
		/**
		 * This parameter is basically identical to the `sorting` parameter, but
		 * cannot be overridden by user interaction with the table. What this means
		 * is that you could have a column (visible or hidden) which the sorting
		 * will always be forced on first - any sorting after that (from the user)
		 * will then be performed as required. This can be useful for grouping rows
		 * together.
		 *  @type array
		 *  @default null
		 *
		 *  @dtopt Option
		 *  @name DataTable.defaults.orderFixed
		 *
		 *  @example
		 *    $(document).ready( function() {
		 *      $('#example').dataTable( {
		 *        "orderFixed": [[0,'asc']]
		 *      } );
		 *    } )
		 */
		"aaSortingFixed": [],
	
	
		/**
		 * DataTables can be instructed to load data to display in the table from a
		 * Ajax source. This option defines how that Ajax call is made and where to.
		 *
		 * The `ajax` property has three different modes of operation, depending on
		 * how it is defined. These are:
		 *
		 * * `string` - Set the URL from where the data should be loaded from.
		 * * `object` - Define properties for `jQuery.ajax`.
		 * * `function` - Custom data get function
		 *
		 * `string`
		 * --------
		 *
		 * As a string, the `ajax` property simply defines the URL from which
		 * DataTables will load data.
		 *
		 * `object`
		 * --------
		 *
		 * As an object, the parameters in the object are passed to
		 * [jQuery.ajax](http://api.jquery.com/jQuery.ajax/) allowing fine control
		 * of the Ajax request. DataTables has a number of default parameters which
		 * you can override using this option. Please refer to the jQuery
		 * documentation for a full description of the options available, although
		 * the following parameters provide additional options in DataTables or
		 * require special consideration:
		 *
		 * * `data` - As with jQuery, `data` can be provided as an object, but it
		 *   can also be used as a function to manipulate the data DataTables sends
		 *   to the server. The function takes a single parameter, an object of
		 *   parameters with the values that DataTables has readied for sending. An
		 *   object may be returned which will be merged into the DataTables
		 *   defaults, or you can add the items to the object that was passed in and
		 *   not return anything from the function. This supersedes `fnServerParams`
		 *   from DataTables 1.9-.
		 *
		 * * `dataSrc` - By default DataTables will look for the property `data` (or
		 *   `aaData` for compatibility with DataTables 1.9-) when obtaining data
		 *   from an Ajax source or for server-side processing - this parameter
		 *   allows that property to be changed. You can use Javascript dotted
		 *   object notation to get a data source for multiple levels of nesting, or
		 *   it my be used as a function. As a function it takes a single parameter,
		 *   the JSON returned from the server, which can be manipulated as
		 *   required, with the returned value being that used by DataTables as the
		 *   data source for the table. This supersedes `sAjaxDataProp` from
		 *   DataTables 1.9-.
		 *
		 * * `success` - Should not be overridden it is used internally in
		 *   DataTables. To manipulate / transform the data returned by the server
		 *   use `ajax.dataSrc`, or use `ajax` as a function (see below).
		 *
		 * `function`
		 * ----------
		 *
		 * As a function, making the Ajax call is left up to yourself allowing
		 * complete control of the Ajax request. Indeed, if desired, a method other
		 * than Ajax could be used to obtain the required data, such as Web storage
		 * or an AIR database.
		 *
		 * The function is given four parameters and no return is required. The
		 * parameters are:
		 *
		 * 1. _object_ - Data to send to the server
		 * 2. _function_ - Callback function that must be executed when the required
		 *    data has been obtained. That data should be passed into the callback
		 *    as the only parameter
		 * 3. _object_ - DataTables settings object for the table
		 *
		 * Note that this supersedes `fnServerData` from DataTables 1.9-.
		 *
		 *  @type string|object|function
		 *  @default null
		 *
		 *  @dtopt Option
		 *  @name DataTable.defaults.ajax
		 *  @since 1.10.0
		 *
		 * @example
		 *   // Get JSON data from a file via Ajax.
		 *   // Note DataTables expects data in the form `{ data: [ ...data... ] }` by default).
		 *   $('#example').dataTable( {
		 *     "ajax": "data.json"
		 *   } );
		 *
		 * @example
		 *   // Get JSON data from a file via Ajax, using `dataSrc` to change
		 *   // `data` to `tableData` (i.e. `{ tableData: [ ...data... ] }`)
		 *   $('#example').dataTable( {
		 *     "ajax": {
		 *       "url": "data.json",
		 *       "dataSrc": "tableData"
		 *     }
		 *   } );
		 *
		 * @example
		 *   // Get JSON data from a file via Ajax, using `dataSrc` to read data
		 *   // from a plain array rather than an array in an object
		 *   $('#example').dataTable( {
		 *     "ajax": {
		 *       "url": "data.json",
		 *       "dataSrc": ""
		 *     }
		 *   } );
		 *
		 * @example
		 *   // Manipulate the data returned from the server - add a link to data
		 *   // (note this can, should, be done using `render` for the column - this
		 *   // is just a simple example of how the data can be manipulated).
		 *   $('#example').dataTable( {
		 *     "ajax": {
		 *       "url": "data.json",
		 *       "dataSrc": function ( json ) {
		 *         for ( var i=0, ien=json.length ; i<ien ; i++ ) {
		 *           json[i][0] = '<a href="/message/'+json[i][0]+'>View message</a>';
		 *         }
		 *         return json;
		 *       }
		 *     }
		 *   } );
		 *
		 * @example
		 *   // Add data to the request
		 *   $('#example').dataTable( {
		 *     "ajax": {
		 *       "url": "data.json",
		 *       "data": function ( d ) {
		 *         return {
		 *           "extra_search": $('#extra').val()
		 *         };
		 *       }
		 *     }
		 *   } );
		 *
		 * @example
		 *   // Send request as POST
		 *   $('#example').dataTable( {
		 *     "ajax": {
		 *       "url": "data.json",
		 *       "type": "POST"
		 *     }
		 *   } );
		 *
		 * @example
		 *   // Get the data from localStorage (could interface with a form for
		 *   // adding, editing and removing rows).
		 *   $('#example').dataTable( {
		 *     "ajax": function (data, callback, settings) {
		 *       callback(
		 *         JSON.parse( localStorage.getItem('dataTablesData') )
		 *       );
		 *     }
		 *   } );
		 */
		"ajax": null,
	
	
		/**
		 * This parameter allows you to readily specify the entries in the length drop
		 * down menu that DataTables shows when pagination is enabled. It can be
		 * either a 1D array of options which will be used for both the displayed
		 * option and the value, or a 2D array which will use the array in the first
		 * position as the value, and the array in the second position as the
		 * displayed options (useful for language strings such as 'All').
		 *
		 * Note that the `pageLength` property will be automatically set to the
		 * first value given in this array, unless `pageLength` is also provided.
		 *  @type array
		 *  @default [ 10, 25, 50, 100 ]
		 *
		 *  @dtopt Option
		 *  @name DataTable.defaults.lengthMenu
		 *
		 *  @example
		 *    $(document).ready( function() {
		 *      $('#example').dataTable( {
		 *        "lengthMenu": [[10, 25, 50, -1], [10, 25, 50, "All"]]
		 *      } );
		 *    } );
		 */
		"aLengthMenu": [ 10, 25, 50, 100 ],
	
	
		/**
		 * The `columns` option in the initialisation parameter allows you to define
		 * details about the way individual columns behave. For a full list of
		 * column options that can be set, please see
		 * {@link DataTable.defaults.column}. Note that if you use `columns` to
		 * define your columns, you must have an entry in the array for every single
		 * column that you have in your table (these can be null if you don't which
		 * to specify any options).
		 *  @member
		 *
		 *  @name DataTable.defaults.column
		 */
		"aoColumns": null,
	
		/**
		 * Very similar to `columns`, `columnDefs` allows you to target a specific
		 * column, multiple columns, or all columns, using the `targets` property of
		 * each object in the array. This allows great flexibility when creating
		 * tables, as the `columnDefs` arrays can be of any length, targeting the
		 * columns you specifically want. `columnDefs` may use any of the column
		 * options available: {@link DataTable.defaults.column}, but it _must_
		 * have `targets` defined in each object in the array. Values in the `targets`
		 * array may be:
		 *   <ul>
		 *     <li>a string - class name will be matched on the TH for the column</li>
		 *     <li>0 or a positive integer - column index counting from the left</li>
		 *     <li>a negative integer - column index counting from the right</li>
		 *     <li>the string "_all" - all columns (i.e. assign a default)</li>
		 *   </ul>
		 *  @member
		 *
		 *  @name DataTable.defaults.columnDefs
		 */
		"aoColumnDefs": null,
	
	
		/**
		 * Basically the same as `search`, this parameter defines the individual column
		 * filtering state at initialisation time. The array must be of the same size
		 * as the number of columns, and each element be an object with the parameters
		 * `search` and `escapeRegex` (the latter is optional). 'null' is also
		 * accepted and the default will be used.
		 *  @type array
		 *  @default []
		 *
		 *  @dtopt Option
		 *  @name DataTable.defaults.searchCols
		 *
		 *  @example
		 *    $(document).ready( function() {
		 *      $('#example').dataTable( {
		 *        "searchCols": [
		 *          null,
		 *          { "search": "My filter" },
		 *          null,
		 *          { "search": "^[0-9]", "escapeRegex": false }
		 *        ]
		 *      } );
		 *    } )
		 */
		"aoSearchCols": [],
	
	
		/**
		 * An array of CSS classes that should be applied to displayed rows. This
		 * array may be of any length, and DataTables will apply each class
		 * sequentially, looping when required.
		 *  @type array
		 *  @default null <i>Will take the values determined by the `oClasses.stripe*`
		 *    options</i>
		 *
		 *  @dtopt Option
		 *  @name DataTable.defaults.stripeClasses
		 *
		 *  @example
		 *    $(document).ready( function() {
		 *      $('#example').dataTable( {
		 *        "stripeClasses": [ 'strip1', 'strip2', 'strip3' ]
		 *      } );
		 *    } )
		 */
		"asStripeClasses": null,
	
	
		/**
		 * Enable or disable automatic column width calculation. This can be disabled
		 * as an optimisation (it takes some time to calculate the widths) if the
		 * tables widths are passed in using `columns`.
		 *  @type boolean
		 *  @default true
		 *
		 *  @dtopt Features
		 *  @name DataTable.defaults.autoWidth
		 *
		 *  @example
		 *    $(document).ready( function () {
		 *      $('#example').dataTable( {
		 *        "autoWidth": false
		 *      } );
		 *    } );
		 */
		"bAutoWidth": true,
	
	
		/**
		 * Deferred rendering can provide DataTables with a huge speed boost when you
		 * are using an Ajax or JS data source for the table. This option, when set to
		 * true, will cause DataTables to defer the creation of the table elements for
		 * each row until they are needed for a draw - saving a significant amount of
		 * time.
		 *  @type boolean
		 *  @default false
		 *
		 *  @dtopt Features
		 *  @name DataTable.defaults.deferRender
		 *
		 *  @example
		 *    $(document).ready( function() {
		 *      $('#example').dataTable( {
		 *        "ajax": "sources/arrays.txt",
		 *        "deferRender": true
		 *      } );
		 *    } );
		 */
		"bDeferRender": false,
	
	
		/**
		 * Replace a DataTable which matches the given selector and replace it with
		 * one which has the properties of the new initialisation object passed. If no
		 * table matches the selector, then the new DataTable will be constructed as
		 * per normal.
		 *  @type boolean
		 *  @default false
		 *
		 *  @dtopt Options
		 *  @name DataTable.defaults.destroy
		 *
		 *  @example
		 *    $(document).ready( function() {
		 *      $('#example').dataTable( {
		 *        "srollY": "200px",
		 *        "paginate": false
		 *      } );
		 *
		 *      // Some time later....
		 *      $('#example').dataTable( {
		 *        "filter": false,
		 *        "destroy": true
		 *      } );
		 *    } );
		 */
		"bDestroy": false,
	
	
		/**
		 * Enable or disable filtering of data. Filtering in DataTables is "smart" in
		 * that it allows the end user to input multiple words (space separated) and
		 * will match a row containing those words, even if not in the order that was
		 * specified (this allow matching across multiple columns). Note that if you
		 * wish to use filtering in DataTables this must remain 'true' - to remove the
		 * default filtering input box and retain filtering abilities, please use
		 * {@link DataTable.defaults.dom}.
		 *  @type boolean
		 *  @default true
		 *
		 *  @dtopt Features
		 *  @name DataTable.defaults.searching
		 *
		 *  @example
		 *    $(document).ready( function () {
		 *      $('#example').dataTable( {
		 *        "searching": false
		 *      } );
		 *    } );
		 */
		"bFilter": true,
	
	
		/**
		 * Enable or disable the table information display. This shows information
		 * about the data that is currently visible on the page, including information
		 * about filtered data if that action is being performed.
		 *  @type boolean
		 *  @default true
		 *
		 *  @dtopt Features
		 *  @name DataTable.defaults.info
		 *
		 *  @example
		 *    $(document).ready( function () {
		 *      $('#example').dataTable( {
		 *        "info": false
		 *      } );
		 *    } );
		 */
		"bInfo": true,
	
	
		/**
		 * Allows the end user to select the size of a formatted page from a select
		 * menu (sizes are 10, 25, 50 and 100). Requires pagination (`paginate`).
		 *  @type boolean
		 *  @default true
		 *
		 *  @dtopt Features
		 *  @name DataTable.defaults.lengthChange
		 *
		 *  @example
		 *    $(document).ready( function () {
		 *      $('#example').dataTable( {
		 *        "lengthChange": false
		 *      } );
		 *    } );
		 */
		"bLengthChange": true,
	
	
		/**
		 * Enable or disable pagination.
		 *  @type boolean
		 *  @default true
		 *
		 *  @dtopt Features
		 *  @name DataTable.defaults.paging
		 *
		 *  @example
		 *    $(document).ready( function () {
		 *      $('#example').dataTable( {
		 *        "paging": false
		 *      } );
		 *    } );
		 */
		"bPaginate": true,
	
	
		/**
		 * Enable or disable the display of a 'processing' indicator when the table is
		 * being processed (e.g. a sort). This is particularly useful for tables with
		 * large amounts of data where it can take a noticeable amount of time to sort
		 * the entries.
		 *  @type boolean
		 *  @default false
		 *
		 *  @dtopt Features
		 *  @name DataTable.defaults.processing
		 *
		 *  @example
		 *    $(document).ready( function () {
		 *      $('#example').dataTable( {
		 *        "processing": true
		 *      } );
		 *    } );
		 */
		"bProcessing": false,
	
	
		/**
		 * Retrieve the DataTables object for the given selector. Note that if the
		 * table has already been initialised, this parameter will cause DataTables
		 * to simply return the object that has already been set up - it will not take
		 * account of any changes you might have made to the initialisation object
		 * passed to DataTables (setting this parameter to true is an acknowledgement
		 * that you understand this). `destroy` can be used to reinitialise a table if
		 * you need.
		 *  @type boolean
		 *  @default false
		 *
		 *  @dtopt Options
		 *  @name DataTable.defaults.retrieve
		 *
		 *  @example
		 *    $(document).ready( function() {
		 *      initTable();
		 *      tableActions();
		 *    } );
		 *
		 *    function initTable ()
		 *    {
		 *      return $('#example').dataTable( {
		 *        "scrollY": "200px",
		 *        "paginate": false,
		 *        "retrieve": true
		 *      } );
		 *    }
		 *
		 *    function tableActions ()
		 *    {
		 *      var table = initTable();
		 *      // perform API operations with oTable
		 *    }
		 */
		"bRetrieve": false,
	
	
		/**
		 * When vertical (y) scrolling is enabled, DataTables will force the height of
		 * the table's viewport to the given height at all times (useful for layout).
		 * However, this can look odd when filtering data down to a small data set,
		 * and the footer is left "floating" further down. This parameter (when
		 * enabled) will cause DataTables to collapse the table's viewport down when
		 * the result set will fit within the given Y height.
		 *  @type boolean
		 *  @default false
		 *
		 *  @dtopt Options
		 *  @name DataTable.defaults.scrollCollapse
		 *
		 *  @example
		 *    $(document).ready( function() {
		 *      $('#example').dataTable( {
		 *        "scrollY": "200",
		 *        "scrollCollapse": true
		 *      } );
		 *    } );
		 */
		"bScrollCollapse": false,
	
	
		/**
		 * Configure DataTables to use server-side processing. Note that the
		 * `ajax` parameter must also be given in order to give DataTables a
		 * source to obtain the required data for each draw.
		 *  @type boolean
		 *  @default false
		 *
		 *  @dtopt Features
		 *  @dtopt Server-side
		 *  @name DataTable.defaults.serverSide
		 *
		 *  @example
		 *    $(document).ready( function () {
		 *      $('#example').dataTable( {
		 *        "serverSide": true,
		 *        "ajax": "xhr.php"
		 *      } );
		 *    } );
		 */
		"bServerSide": false,
	
	
		/**
		 * Enable or disable sorting of columns. Sorting of individual columns can be
		 * disabled by the `sortable` option for each column.
		 *  @type boolean
		 *  @default true
		 *
		 *  @dtopt Features
		 *  @name DataTable.defaults.ordering
		 *
		 *  @example
		 *    $(document).ready( function () {
		 *      $('#example').dataTable( {
		 *        "ordering": false
		 *      } );
		 *    } );
		 */
		"bSort": true,
	
	
		/**
		 * Enable or display DataTables' ability to sort multiple columns at the
		 * same time (activated by shift-click by the user).
		 *  @type boolean
		 *  @default true
		 *
		 *  @dtopt Options
		 *  @name DataTable.defaults.orderMulti
		 *
		 *  @example
		 *    // Disable multiple column sorting ability
		 *    $(document).ready( function () {
		 *      $('#example').dataTable( {
		 *        "orderMulti": false
		 *      } );
		 *    } );
		 */
		"bSortMulti": true,
	
	
		/**
		 * Allows control over whether DataTables should use the top (true) unique
		 * cell that is found for a single column, or the bottom (false - default).
		 * This is useful when using complex headers.
		 *  @type boolean
		 *  @default false
		 *
		 *  @dtopt Options
		 *  @name DataTable.defaults.orderCellsTop
		 *
		 *  @example
		 *    $(document).ready( function() {
		 *      $('#example').dataTable( {
		 *        "orderCellsTop": true
		 *      } );
		 *    } );
		 */
		"bSortCellsTop": false,
	
	
		/**
		 * Enable or disable the addition of the classes `sorting\_1`, `sorting\_2` and
		 * `sorting\_3` to the columns which are currently being sorted on. This is
		 * presented as a feature switch as it can increase processing time (while
		 * classes are removed and added) so for large data sets you might want to
		 * turn this off.
		 *  @type boolean
		 *  @default true
		 *
		 *  @dtopt Features
		 *  @name DataTable.defaults.orderClasses
		 *
		 *  @example
		 *    $(document).ready( function () {
		 *      $('#example').dataTable( {
		 *        "orderClasses": false
		 *      } );
		 *    } );
		 */
		"bSortClasses": true,
	
	
		/**
		 * Enable or disable state saving. When enabled HTML5 `localStorage` will be
		 * used to save table display information such as pagination information,
		 * display length, filtering and sorting. As such when the end user reloads
		 * the page the display display will match what thy had previously set up.
		 *
		 * Due to the use of `localStorage` the default state saving is not supported
		 * in IE6 or 7. If state saving is required in those browsers, use
		 * `stateSaveCallback` to provide a storage solution such as cookies.
		 *  @type boolean
		 *  @default false
		 *
		 *  @dtopt Features
		 *  @name DataTable.defaults.stateSave
		 *
		 *  @example
		 *    $(document).ready( function () {
		 *      $('#example').dataTable( {
		 *        "stateSave": true
		 *      } );
		 *    } );
		 */
		"bStateSave": false,
	
	
		/**
		 * This function is called when a TR element is created (and all TD child
		 * elements have been inserted), or registered if using a DOM source, allowing
		 * manipulation of the TR element (adding classes etc).
		 *  @type function
		 *  @param {node} row "TR" element for the current row
		 *  @param {array} data Raw data array for this row
		 *  @param {int} dataIndex The index of this row in the internal aoData array
		 *
		 *  @dtopt Callbacks
		 *  @name DataTable.defaults.createdRow
		 *
		 *  @example
		 *    $(document).ready( function() {
		 *      $('#example').dataTable( {
		 *        "createdRow": function( row, data, dataIndex ) {
		 *          // Bold the grade for all 'A' grade browsers
		 *          if ( data[4] == "A" )
		 *          {
		 *            $('td:eq(4)', row).html( '<b>A</b>' );
		 *          }
		 *        }
		 *      } );
		 *    } );
		 */
		"fnCreatedRow": null,
	
	
		/**
		 * This function is called on every 'draw' event, and allows you to
		 * dynamically modify any aspect you want about the created DOM.
		 *  @type function
		 *  @param {object} settings DataTables settings object
		 *
		 *  @dtopt Callbacks
		 *  @name DataTable.defaults.drawCallback
		 *
		 *  @example
		 *    $(document).ready( function() {
		 *      $('#example').dataTable( {
		 *        "drawCallback": function( settings ) {
		 *          alert( 'DataTables has redrawn the table' );
		 *        }
		 *      } );
		 *    } );
		 */
		"fnDrawCallback": null,
	
	
		/**
		 * Identical to fnHeaderCallback() but for the table footer this function
		 * allows you to modify the table footer on every 'draw' event.
		 *  @type function
		 *  @param {node} foot "TR" element for the footer
		 *  @param {array} data Full table data (as derived from the original HTML)
		 *  @param {int} start Index for the current display starting point in the
		 *    display array
		 *  @param {int} end Index for the current display ending point in the
		 *    display array
		 *  @param {array int} display Index array to translate the visual position
		 *    to the full data array
		 *
		 *  @dtopt Callbacks
		 *  @name DataTable.defaults.footerCallback
		 *
		 *  @example
		 *    $(document).ready( function() {
		 *      $('#example').dataTable( {
		 *        "footerCallback": function( tfoot, data, start, end, display ) {
		 *          tfoot.getElementsByTagName('th')[0].innerHTML = "Starting index is "+start;
		 *        }
		 *      } );
		 *    } )
		 */
		"fnFooterCallback": null,
	
	
		/**
		 * When rendering large numbers in the information element for the table
		 * (i.e. "Showing 1 to 10 of 57 entries") DataTables will render large numbers
		 * to have a comma separator for the 'thousands' units (e.g. 1 million is
		 * rendered as "1,000,000") to help readability for the end user. This
		 * function will override the default method DataTables uses.
		 *  @type function
		 *  @member
		 *  @param {int} toFormat number to be formatted
		 *  @returns {string} formatted string for DataTables to show the number
		 *
		 *  @dtopt Callbacks
		 *  @name DataTable.defaults.formatNumber
		 *
		 *  @example
		 *    // Format a number using a single quote for the separator (note that
		 *    // this can also be done with the language.thousands option)
		 *    $(document).ready( function() {
		 *      $('#example').dataTable( {
		 *        "formatNumber": function ( toFormat ) {
		 *          return toFormat.toString().replace(
		 *            /\B(?=(\d{3})+(?!\d))/g, "'"
		 *          );
		 *        };
		 *      } );
		 *    } );
		 */
		"fnFormatNumber": function ( toFormat ) {
			return toFormat.toString().replace(
				/\B(?=(\d{3})+(?!\d))/g,
				this.oLanguage.sThousands
			);
		},
	
	
		/**
		 * This function is called on every 'draw' event, and allows you to
		 * dynamically modify the header row. This can be used to calculate and
		 * display useful information about the table.
		 *  @type function
		 *  @param {node} head "TR" element for the header
		 *  @param {array} data Full table data (as derived from the original HTML)
		 *  @param {int} start Index for the current display starting point in the
		 *    display array
		 *  @param {int} end Index for the current display ending point in the
		 *    display array
		 *  @param {array int} display Index array to translate the visual position
		 *    to the full data array
		 *
		 *  @dtopt Callbacks
		 *  @name DataTable.defaults.headerCallback
		 *
		 *  @example
		 *    $(document).ready( function() {
		 *      $('#example').dataTable( {
		 *        "fheaderCallback": function( head, data, start, end, display ) {
		 *          head.getElementsByTagName('th')[0].innerHTML = "Displaying "+(end-start)+" records";
		 *        }
		 *      } );
		 *    } )
		 */
		"fnHeaderCallback": null,
	
	
		/**
		 * The information element can be used to convey information about the current
		 * state of the table. Although the internationalisation options presented by
		 * DataTables are quite capable of dealing with most customisations, there may
		 * be times where you wish to customise the string further. This callback
		 * allows you to do exactly that.
		 *  @type function
		 *  @param {object} oSettings DataTables settings object
		 *  @param {int} start Starting position in data for the draw
		 *  @param {int} end End position in data for the draw
		 *  @param {int} max Total number of rows in the table (regardless of
		 *    filtering)
		 *  @param {int} total Total number of rows in the data set, after filtering
		 *  @param {string} pre The string that DataTables has formatted using it's
		 *    own rules
		 *  @returns {string} The string to be displayed in the information element.
		 *
		 *  @dtopt Callbacks
		 *  @name DataTable.defaults.infoCallback
		 *
		 *  @example
		 *    $('#example').dataTable( {
		 *      "infoCallback": function( settings, start, end, max, total, pre ) {
		 *        return start +" to "+ end;
		 *      }
		 *    } );
		 */
		"fnInfoCallback": null,
	
	
		/**
		 * Called when the table has been initialised. Normally DataTables will
		 * initialise sequentially and there will be no need for this function,
		 * however, this does not hold true when using external language information
		 * since that is obtained using an async XHR call.
		 *  @type function
		 *  @param {object} settings DataTables settings object
		 *  @param {object} json The JSON object request from the server - only
		 *    present if client-side Ajax sourced data is used
		 *
		 *  @dtopt Callbacks
		 *  @name DataTable.defaults.initComplete
		 *
		 *  @example
		 *    $(document).ready( function() {
		 *      $('#example').dataTable( {
		 *        "initComplete": function(settings, json) {
		 *          alert( 'DataTables has finished its initialisation.' );
		 *        }
		 *      } );
		 *    } )
		 */
		"fnInitComplete": null,
	
	
		/**
		 * Called at the very start of each table draw and can be used to cancel the
		 * draw by returning false, any other return (including undefined) results in
		 * the full draw occurring).
		 *  @type function
		 *  @param {object} settings DataTables settings object
		 *  @returns {boolean} False will cancel the draw, anything else (including no
		 *    return) will allow it to complete.
		 *
		 *  @dtopt Callbacks
		 *  @name DataTable.defaults.preDrawCallback
		 *
		 *  @example
		 *    $(document).ready( function() {
		 *      $('#example').dataTable( {
		 *        "preDrawCallback": function( settings ) {
		 *          if ( $('#test').val() == 1 ) {
		 *            return false;
		 *          }
		 *        }
		 *      } );
		 *    } );
		 */
		"fnPreDrawCallback": null,
	
	
		/**
		 * This function allows you to 'post process' each row after it have been
		 * generated for each table draw, but before it is rendered on screen. This
		 * function might be used for setting the row class name etc.
		 *  @type function
		 *  @param {node} row "TR" element for the current row
		 *  @param {array} data Raw data array for this row
		 *  @param {int} displayIndex The display index for the current table draw
		 *  @param {int} displayIndexFull The index of the data in the full list of
		 *    rows (after filtering)
		 *
		 *  @dtopt Callbacks
		 *  @name DataTable.defaults.rowCallback
		 *
		 *  @example
		 *    $(document).ready( function() {
		 *      $('#example').dataTable( {
		 *        "rowCallback": function( row, data, displayIndex, displayIndexFull ) {
		 *          // Bold the grade for all 'A' grade browsers
		 *          if ( data[4] == "A" ) {
		 *            $('td:eq(4)', row).html( '<b>A</b>' );
		 *          }
		 *        }
		 *      } );
		 *    } );
		 */
		"fnRowCallback": null,
	
	
		/**
		 * __Deprecated__ The functionality provided by this parameter has now been
		 * superseded by that provided through `ajax`, which should be used instead.
		 *
		 * This parameter allows you to override the default function which obtains
		 * the data from the server so something more suitable for your application.
		 * For example you could use POST data, or pull information from a Gears or
		 * AIR database.
		 *  @type function
		 *  @member
		 *  @param {string} source HTTP source to obtain the data from (`ajax`)
		 *  @param {array} data A key/value pair object containing the data to send
		 *    to the server
		 *  @param {function} callback to be called on completion of the data get
		 *    process that will draw the data on the page.
		 *  @param {object} settings DataTables settings object
		 *
		 *  @dtopt Callbacks
		 *  @dtopt Server-side
		 *  @name DataTable.defaults.serverData
		 *
		 *  @deprecated 1.10. Please use `ajax` for this functionality now.
		 */
		"fnServerData": null,
	
	
		/**
		 * __Deprecated__ The functionality provided by this parameter has now been
		 * superseded by that provided through `ajax`, which should be used instead.
		 *
		 *  It is often useful to send extra data to the server when making an Ajax
		 * request - for example custom filtering information, and this callback
		 * function makes it trivial to send extra information to the server. The
		 * passed in parameter is the data set that has been constructed by
		 * DataTables, and you can add to this or modify it as you require.
		 *  @type function
		 *  @param {array} data Data array (array of objects which are name/value
		 *    pairs) that has been constructed by DataTables and will be sent to the
		 *    server. In the case of Ajax sourced data with server-side processing
		 *    this will be an empty array, for server-side processing there will be a
		 *    significant number of parameters!
		 *  @returns {undefined} Ensure that you modify the data array passed in,
		 *    as this is passed by reference.
		 *
		 *  @dtopt Callbacks
		 *  @dtopt Server-side
		 *  @name DataTable.defaults.serverParams
		 *
		 *  @deprecated 1.10. Please use `ajax` for this functionality now.
		 */
		"fnServerParams": null,
	
	
		/**
		 * Load the table state. With this function you can define from where, and how, the
		 * state of a table is loaded. By default DataTables will load from `localStorage`
		 * but you might wish to use a server-side database or cookies.
		 *  @type function
		 *  @member
		 *  @param {object} settings DataTables settings object
		 *  @param {object} callback Callback that can be executed when done. It
		 *    should be passed the loaded state object.
		 *  @return {object} The DataTables state object to be loaded
		 *
		 *  @dtopt Callbacks
		 *  @name DataTable.defaults.stateLoadCallback
		 *
		 *  @example
		 *    $(document).ready( function() {
		 *      $('#example').dataTable( {
		 *        "stateSave": true,
		 *        "stateLoadCallback": function (settings, callback) {
		 *          $.ajax( {
		 *            "url": "/state_load",
		 *            "dataType": "json",
		 *            "success": function (json) {
		 *              callback( json );
		 *            }
		 *          } );
		 *        }
		 *      } );
		 *    } );
		 */
		"fnStateLoadCallback": function ( settings ) {
			try {
				return JSON.parse(
					(settings.iStateDuration === -1 ? sessionStorage : localStorage).getItem(
						'DataTables_'+settings.sInstance+'_'+location.pathname
					)
				);
			} catch (e) {}
		},
	
	
		/**
		 * Callback which allows modification of the saved state prior to loading that state.
		 * This callback is called when the table is loading state from the stored data, but
		 * prior to the settings object being modified by the saved state. Note that for
		 * plug-in authors, you should use the `stateLoadParams` event to load parameters for
		 * a plug-in.
		 *  @type function
		 *  @param {object} settings DataTables settings object
		 *  @param {object} data The state object that is to be loaded
		 *
		 *  @dtopt Callbacks
		 *  @name DataTable.defaults.stateLoadParams
		 *
		 *  @example
		 *    // Remove a saved filter, so filtering is never loaded
		 *    $(document).ready( function() {
		 *      $('#example').dataTable( {
		 *        "stateSave": true,
		 *        "stateLoadParams": function (settings, data) {
		 *          data.oSearch.sSearch = "";
		 *        }
		 *      } );
		 *    } );
		 *
		 *  @example
		 *    // Disallow state loading by returning false
		 *    $(document).ready( function() {
		 *      $('#example').dataTable( {
		 *        "stateSave": true,
		 *        "stateLoadParams": function (settings, data) {
		 *          return false;
		 *        }
		 *      } );
		 *    } );
		 */
		"fnStateLoadParams": null,
	
	
		/**
		 * Callback that is called when the state has been loaded from the state saving method
		 * and the DataTables settings object has been modified as a result of the loaded state.
		 *  @type function
		 *  @param {object} settings DataTables settings object
		 *  @param {object} data The state object that was loaded
		 *
		 *  @dtopt Callbacks
		 *  @name DataTable.defaults.stateLoaded
		 *
		 *  @example
		 *    // Show an alert with the filtering value that was saved
		 *    $(document).ready( function() {
		 *      $('#example').dataTable( {
		 *        "stateSave": true,
		 *        "stateLoaded": function (settings, data) {
		 *          alert( 'Saved filter was: '+data.oSearch.sSearch );
		 *        }
		 *      } );
		 *    } );
		 */
		"fnStateLoaded": null,
	
	
		/**
		 * Save the table state. This function allows you to define where and how the state
		 * information for the table is stored By default DataTables will use `localStorage`
		 * but you might wish to use a server-side database or cookies.
		 *  @type function
		 *  @member
		 *  @param {object} settings DataTables settings object
		 *  @param {object} data The state object to be saved
		 *
		 *  @dtopt Callbacks
		 *  @name DataTable.defaults.stateSaveCallback
		 *
		 *  @example
		 *    $(document).ready( function() {
		 *      $('#example').dataTable( {
		 *        "stateSave": true,
		 *        "stateSaveCallback": function (settings, data) {
		 *          // Send an Ajax request to the server with the state object
		 *          $.ajax( {
		 *            "url": "/state_save",
		 *            "data": data,
		 *            "dataType": "json",
		 *            "method": "POST"
		 *            "success": function () {}
		 *          } );
		 *        }
		 *      } );
		 *    } );
		 */
		"fnStateSaveCallback": function ( settings, data ) {
			try {
				(settings.iStateDuration === -1 ? sessionStorage : localStorage).setItem(
					'DataTables_'+settings.sInstance+'_'+location.pathname,
					JSON.stringify( data )
				);
			} catch (e) {}
		},
	
	
		/**
		 * Callback which allows modification of the state to be saved. Called when the table
		 * has changed state a new state save is required. This method allows modification of
		 * the state saving object prior to actually doing the save, including addition or
		 * other state properties or modification. Note that for plug-in authors, you should
		 * use the `stateSaveParams` event to save parameters for a plug-in.
		 *  @type function
		 *  @param {object} settings DataTables settings object
		 *  @param {object} data The state object to be saved
		 *
		 *  @dtopt Callbacks
		 *  @name DataTable.defaults.stateSaveParams
		 *
		 *  @example
		 *    // Remove a saved filter, so filtering is never saved
		 *    $(document).ready( function() {
		 *      $('#example').dataTable( {
		 *        "stateSave": true,
		 *        "stateSaveParams": function (settings, data) {
		 *          data.oSearch.sSearch = "";
		 *        }
		 *      } );
		 *    } );
		 */
		"fnStateSaveParams": null,
	
	
		/**
		 * Duration for which the saved state information is considered valid. After this period
		 * has elapsed the state will be returned to the default.
		 * Value is given in seconds.
		 *  @type int
		 *  @default 7200 <i>(2 hours)</i>
		 *
		 *  @dtopt Options
		 *  @name DataTable.defaults.stateDuration
		 *
		 *  @example
		 *    $(document).ready( function() {
		 *      $('#example').dataTable( {
		 *        "stateDuration": 60*60*24; // 1 day
		 *      } );
		 *    } )
		 */
		"iStateDuration": 7200,
	
	
		/**
		 * When enabled DataTables will not make a request to the server for the first
		 * page draw - rather it will use the data already on the page (no sorting etc
		 * will be applied to it), thus saving on an XHR at load time. `deferLoading`
		 * is used to indicate that deferred loading is required, but it is also used
		 * to tell DataTables how many records there are in the full table (allowing
		 * the information element and pagination to be displayed correctly). In the case
		 * where a filtering is applied to the table on initial load, this can be
		 * indicated by giving the parameter as an array, where the first element is
		 * the number of records available after filtering and the second element is the
		 * number of records without filtering (allowing the table information element
		 * to be shown correctly).
		 *  @type int | array
		 *  @default null
		 *
		 *  @dtopt Options
		 *  @name DataTable.defaults.deferLoading
		 *
		 *  @example
		 *    // 57 records available in the table, no filtering applied
		 *    $(document).ready( function() {
		 *      $('#example').dataTable( {
		 *        "serverSide": true,
		 *        "ajax": "scripts/server_processing.php",
		 *        "deferLoading": 57
		 *      } );
		 *    } );
		 *
		 *  @example
		 *    // 57 records after filtering, 100 without filtering (an initial filter applied)
		 *    $(document).ready( function() {
		 *      $('#example').dataTable( {
		 *        "serverSide": true,
		 *        "ajax": "scripts/server_processing.php",
		 *        "deferLoading": [ 57, 100 ],
		 *        "search": {
		 *          "search": "my_filter"
		 *        }
		 *      } );
		 *    } );
		 */
		"iDeferLoading": null,
	
	
		/**
		 * Number of rows to display on a single page when using pagination. If
		 * feature enabled (`lengthChange`) then the end user will be able to override
		 * this to a custom setting using a pop-up menu.
		 *  @type int
		 *  @default 10
		 *
		 *  @dtopt Options
		 *  @name DataTable.defaults.pageLength
		 *
		 *  @example
		 *    $(document).ready( function() {
		 *      $('#example').dataTable( {
		 *        "pageLength": 50
		 *      } );
		 *    } )
		 */
		"iDisplayLength": 10,
	
	
		/**
		 * Define the starting point for data display when using DataTables with
		 * pagination. Note that this parameter is the number of records, rather than
		 * the page number, so if you have 10 records per page and want to start on
		 * the third page, it should be "20".
		 *  @type int
		 *  @default 0
		 *
		 *  @dtopt Options
		 *  @name DataTable.defaults.displayStart
		 *
		 *  @example
		 *    $(document).ready( function() {
		 *      $('#example').dataTable( {
		 *        "displayStart": 20
		 *      } );
		 *    } )
		 */
		"iDisplayStart": 0,
	
	
		/**
		 * By default DataTables allows keyboard navigation of the table (sorting, paging,
		 * and filtering) by adding a `tabindex` attribute to the required elements. This
		 * allows you to tab through the controls and press the enter key to activate them.
		 * The tabindex is default 0, meaning that the tab follows the flow of the document.
		 * You can overrule this using this parameter if you wish. Use a value of -1 to
		 * disable built-in keyboard navigation.
		 *  @type int
		 *  @default 0
		 *
		 *  @dtopt Options
		 *  @name DataTable.defaults.tabIndex
		 *
		 *  @example
		 *    $(document).ready( function() {
		 *      $('#example').dataTable( {
		 *        "tabIndex": 1
		 *      } );
		 *    } );
		 */
		"iTabIndex": 0,
	
	
		/**
		 * Classes that DataTables assigns to the various components and features
		 * that it adds to the HTML table. This allows classes to be configured
		 * during initialisation in addition to through the static
		 * {@link DataTable.ext.oStdClasses} object).
		 *  @namespace
		 *  @name DataTable.defaults.classes
		 */
		"oClasses": {},
	
	
		/**
		 * All strings that DataTables uses in the user interface that it creates
		 * are defined in this object, allowing you to modified them individually or
		 * completely replace them all as required.
		 *  @namespace
		 *  @name DataTable.defaults.language
		 */
		"oLanguage": {
			/**
			 * Strings that are used for WAI-ARIA labels and controls only (these are not
			 * actually visible on the page, but will be read by screenreaders, and thus
			 * must be internationalised as well).
			 *  @namespace
			 *  @name DataTable.defaults.language.aria
			 */
			"oAria": {
				/**
				 * ARIA label that is added to the table headers when the column may be
				 * sorted ascending by activing the column (click or return when focused).
				 * Note that the column header is prefixed to this string.
				 *  @type string
				 *  @default : activate to sort column ascending
				 *
				 *  @dtopt Language
				 *  @name DataTable.defaults.language.aria.sortAscending
				 *
				 *  @example
				 *    $(document).ready( function() {
				 *      $('#example').dataTable( {
				 *        "language": {
				 *          "aria": {
				 *            "sortAscending": " - click/return to sort ascending"
				 *          }
				 *        }
				 *      } );
				 *    } );
				 */
				"sSortAscending": ": activate to sort column ascending",
	
				/**
				 * ARIA label that is added to the table headers when the column may be
				 * sorted descending by activing the column (click or return when focused).
				 * Note that the column header is prefixed to this string.
				 *  @type string
				 *  @default : activate to sort column ascending
				 *
				 *  @dtopt Language
				 *  @name DataTable.defaults.language.aria.sortDescending
				 *
				 *  @example
				 *    $(document).ready( function() {
				 *      $('#example').dataTable( {
				 *        "language": {
				 *          "aria": {
				 *            "sortDescending": " - click/return to sort descending"
				 *          }
				 *        }
				 *      } );
				 *    } );
				 */
				"sSortDescending": ": activate to sort column descending"
			},
	
			/**
			 * Pagination string used by DataTables for the built-in pagination
			 * control types.
			 *  @namespace
			 *  @name DataTable.defaults.language.paginate
			 */
			"oPaginate": {
				/**
				 * Text to use when using the 'full_numbers' type of pagination for the
				 * button to take the user to the first page.
				 *  @type string
				 *  @default First
				 *
				 *  @dtopt Language
				 *  @name DataTable.defaults.language.paginate.first
				 *
				 *  @example
				 *    $(document).ready( function() {
				 *      $('#example').dataTable( {
				 *        "language": {
				 *          "paginate": {
				 *            "first": "First page"
				 *          }
				 *        }
				 *      } );
				 *    } );
				 */
				"sFirst": "First",
	
	
				/**
				 * Text to use when using the 'full_numbers' type of pagination for the
				 * button to take the user to the last page.
				 *  @type string
				 *  @default Last
				 *
				 *  @dtopt Language
				 *  @name DataTable.defaults.language.paginate.last
				 *
				 *  @example
				 *    $(document).ready( function() {
				 *      $('#example').dataTable( {
				 *        "language": {
				 *          "paginate": {
				 *            "last": "Last page"
				 *          }
				 *        }
				 *      } );
				 *    } );
				 */
				"sLast": "Last",
	
	
				/**
				 * Text to use for the 'next' pagination button (to take the user to the
				 * next page).
				 *  @type string
				 *  @default Next
				 *
				 *  @dtopt Language
				 *  @name DataTable.defaults.language.paginate.next
				 *
				 *  @example
				 *    $(document).ready( function() {
				 *      $('#example').dataTable( {
				 *        "language": {
				 *          "paginate": {
				 *            "next": "Next page"
				 *          }
				 *        }
				 *      } );
				 *    } );
				 */
				"sNext": "Next",
	
	
				/**
				 * Text to use for the 'previous' pagination button (to take the user to
				 * the previous page).
				 *  @type string
				 *  @default Previous
				 *
				 *  @dtopt Language
				 *  @name DataTable.defaults.language.paginate.previous
				 *
				 *  @example
				 *    $(document).ready( function() {
				 *      $('#example').dataTable( {
				 *        "language": {
				 *          "paginate": {
				 *            "previous": "Previous page"
				 *          }
				 *        }
				 *      } );
				 *    } );
				 */
				"sPrevious": "Previous"
			},
	
			/**
			 * This string is shown in preference to `zeroRecords` when the table is
			 * empty of data (regardless of filtering). Note that this is an optional
			 * parameter - if it is not given, the value of `zeroRecords` will be used
			 * instead (either the default or given value).
			 *  @type string
			 *  @default No data available in table
			 *
			 *  @dtopt Language
			 *  @name DataTable.defaults.language.emptyTable
			 *
			 *  @example
			 *    $(document).ready( function() {
			 *      $('#example').dataTable( {
			 *        "language": {
			 *          "emptyTable": "No data available in table"
			 *        }
			 *      } );
			 *    } );
			 */
			"sEmptyTable": "No data available in table",
	
	
			/**
			 * This string gives information to the end user about the information
			 * that is current on display on the page. The following tokens can be
			 * used in the string and will be dynamically replaced as the table
			 * display updates. This tokens can be placed anywhere in the string, or
			 * removed as needed by the language requires:
			 *
			 * * `\_START\_` - Display index of the first record on the current page
			 * * `\_END\_` - Display index of the last record on the current page
			 * * `\_TOTAL\_` - Number of records in the table after filtering
			 * * `\_MAX\_` - Number of records in the table without filtering
			 * * `\_PAGE\_` - Current page number
			 * * `\_PAGES\_` - Total number of pages of data in the table
			 *
			 *  @type string
			 *  @default Showing _START_ to _END_ of _TOTAL_ entries
			 *
			 *  @dtopt Language
			 *  @name DataTable.defaults.language.info
			 *
			 *  @example
			 *    $(document).ready( function() {
			 *      $('#example').dataTable( {
			 *        "language": {
			 *          "info": "Showing page _PAGE_ of _PAGES_"
			 *        }
			 *      } );
			 *    } );
			 */
			"sInfo": "Showing _START_ to _END_ of _TOTAL_ entries",
	
	
			/**
			 * Display information string for when the table is empty. Typically the
			 * format of this string should match `info`.
			 *  @type string
			 *  @default Showing 0 to 0 of 0 entries
			 *
			 *  @dtopt Language
			 *  @name DataTable.defaults.language.infoEmpty
			 *
			 *  @example
			 *    $(document).ready( function() {
			 *      $('#example').dataTable( {
			 *        "language": {
			 *          "infoEmpty": "No entries to show"
			 *        }
			 *      } );
			 *    } );
			 */
			"sInfoEmpty": "Showing 0 to 0 of 0 entries",
	
	
			/**
			 * When a user filters the information in a table, this string is appended
			 * to the information (`info`) to give an idea of how strong the filtering
			 * is. The variable _MAX_ is dynamically updated.
			 *  @type string
			 *  @default (filtered from _MAX_ total entries)
			 *
			 *  @dtopt Language
			 *  @name DataTable.defaults.language.infoFiltered
			 *
			 *  @example
			 *    $(document).ready( function() {
			 *      $('#example').dataTable( {
			 *        "language": {
			 *          "infoFiltered": " - filtering from _MAX_ records"
			 *        }
			 *      } );
			 *    } );
			 */
			"sInfoFiltered": "(filtered from _MAX_ total entries)",
	
	
			/**
			 * If can be useful to append extra information to the info string at times,
			 * and this variable does exactly that. This information will be appended to
			 * the `info` (`infoEmpty` and `infoFiltered` in whatever combination they are
			 * being used) at all times.
			 *  @type string
			 *  @default <i>Empty string</i>
			 *
			 *  @dtopt Language
			 *  @name DataTable.defaults.language.infoPostFix
			 *
			 *  @example
			 *    $(document).ready( function() {
			 *      $('#example').dataTable( {
			 *        "language": {
			 *          "infoPostFix": "All records shown are derived from real information."
			 *        }
			 *      } );
			 *    } );
			 */
			"sInfoPostFix": "",
	
	
			/**
			 * This decimal place operator is a little different from the other
			 * language options since DataTables doesn't output floating point
			 * numbers, so it won't ever use this for display of a number. Rather,
			 * what this parameter does is modify the sort methods of the table so
			 * that numbers which are in a format which has a character other than
			 * a period (`.`) as a decimal place will be sorted numerically.
			 *
			 * Note that numbers with different decimal places cannot be shown in
			 * the same table and still be sortable, the table must be consistent.
			 * However, multiple different tables on the page can use different
			 * decimal place characters.
			 *  @type string
			 *  @default 
			 *
			 *  @dtopt Language
			 *  @name DataTable.defaults.language.decimal
			 *
			 *  @example
			 *    $(document).ready( function() {
			 *      $('#example').dataTable( {
			 *        "language": {
			 *          "decimal": ","
			 *          "thousands": "."
			 *        }
			 *      } );
			 *    } );
			 */
			"sDecimal": "",
	
	
			/**
			 * DataTables has a build in number formatter (`formatNumber`) which is
			 * used to format large numbers that are used in the table information.
			 * By default a comma is used, but this can be trivially changed to any
			 * character you wish with this parameter.
			 *  @type string
			 *  @default ,
			 *
			 *  @dtopt Language
			 *  @name DataTable.defaults.language.thousands
			 *
			 *  @example
			 *    $(document).ready( function() {
			 *      $('#example').dataTable( {
			 *        "language": {
			 *          "thousands": "'"
			 *        }
			 *      } );
			 *    } );
			 */
			"sThousands": ",",
	
	
			/**
			 * Detail the action that will be taken when the drop down menu for the
			 * pagination length option is changed. The '_MENU_' variable is replaced
			 * with a default select list of 10, 25, 50 and 100, and can be replaced
			 * with a custom select box if required.
			 *  @type string
			 *  @default Show _MENU_ entries
			 *
			 *  @dtopt Language
			 *  @name DataTable.defaults.language.lengthMenu
			 *
			 *  @example
			 *    // Language change only
			 *    $(document).ready( function() {
			 *      $('#example').dataTable( {
			 *        "language": {
			 *          "lengthMenu": "Display _MENU_ records"
			 *        }
			 *      } );
			 *    } );
			 *
			 *  @example
			 *    // Language and options change
			 *    $(document).ready( function() {
			 *      $('#example').dataTable( {
			 *        "language": {
			 *          "lengthMenu": 'Display <select>'+
			 *            '<option value="10">10</option>'+
			 *            '<option value="20">20</option>'+
			 *            '<option value="30">30</option>'+
			 *            '<option value="40">40</option>'+
			 *            '<option value="50">50</option>'+
			 *            '<option value="-1">All</option>'+
			 *            '</select> records'
			 *        }
			 *      } );
			 *    } );
			 */
			"sLengthMenu": "Show _MENU_ entries",
	
	
			/**
			 * When using Ajax sourced data and during the first draw when DataTables is
			 * gathering the data, this message is shown in an empty row in the table to
			 * indicate to the end user the the data is being loaded. Note that this
			 * parameter is not used when loading data by server-side processing, just
			 * Ajax sourced data with client-side processing.
			 *  @type string
			 *  @default Loading...
			 *
			 *  @dtopt Language
			 *  @name DataTable.defaults.language.loadingRecords
			 *
			 *  @example
			 *    $(document).ready( function() {
			 *      $('#example').dataTable( {
			 *        "language": {
			 *          "loadingRecords": "Please wait - loading..."
			 *        }
			 *      } );
			 *    } );
			 */
			"sLoadingRecords": "Loading...",
	
	
			/**
			 * Text which is displayed when the table is processing a user action
			 * (usually a sort command or similar).
			 *  @type string
			 *  @default Processing...
			 *
			 *  @dtopt Language
			 *  @name DataTable.defaults.language.processing
			 *
			 *  @example
			 *    $(document).ready( function() {
			 *      $('#example').dataTable( {
			 *        "language": {
			 *          "processing": "DataTables is currently busy"
			 *        }
			 *      } );
			 *    } );
			 */
			"sProcessing": "Processing...",
	
	
			/**
			 * Details the actions that will be taken when the user types into the
			 * filtering input text box. The variable "_INPUT_", if used in the string,
			 * is replaced with the HTML text box for the filtering input allowing
			 * control over where it appears in the string. If "_INPUT_" is not given
			 * then the input box is appended to the string automatically.
			 *  @type string
			 *  @default Search:
			 *
			 *  @dtopt Language
			 *  @name DataTable.defaults.language.search
			 *
			 *  @example
			 *    // Input text box will be appended at the end automatically
			 *    $(document).ready( function() {
			 *      $('#example').dataTable( {
			 *        "language": {
			 *          "search": "Filter records:"
			 *        }
			 *      } );
			 *    } );
			 *
			 *  @example
			 *    // Specify where the filter should appear
			 *    $(document).ready( function() {
			 *      $('#example').dataTable( {
			 *        "language": {
			 *          "search": "Apply filter _INPUT_ to table"
			 *        }
			 *      } );
			 *    } );
			 */
			"sSearch": "Search:",
	
	
			/**
			 * Assign a `placeholder` attribute to the search `input` element
			 *  @type string
			 *  @default 
			 *
			 *  @dtopt Language
			 *  @name DataTable.defaults.language.searchPlaceholder
			 */
			"sSearchPlaceholder": "",
	
	
			/**
			 * All of the language information can be stored in a file on the
			 * server-side, which DataTables will look up if this parameter is passed.
			 * It must store the URL of the language file, which is in a JSON format,
			 * and the object has the same properties as the oLanguage object in the
			 * initialiser object (i.e. the above parameters). Please refer to one of
			 * the example language files to see how this works in action.
			 *  @type string
			 *  @default <i>Empty string - i.e. disabled</i>
			 *
			 *  @dtopt Language
			 *  @name DataTable.defaults.language.url
			 *
			 *  @example
			 *    $(document).ready( function() {
			 *      $('#example').dataTable( {
			 *        "language": {
			 *          "url": "http://www.sprymedia.co.uk/dataTables/lang.txt"
			 *        }
			 *      } );
			 *    } );
			 */
			"sUrl": "",
	
	
			/**
			 * Text shown inside the table records when the is no information to be
			 * displayed after filtering. `emptyTable` is shown when there is simply no
			 * information in the table at all (regardless of filtering).
			 *  @type string
			 *  @default No matching records found
			 *
			 *  @dtopt Language
			 *  @name DataTable.defaults.language.zeroRecords
			 *
			 *  @example
			 *    $(document).ready( function() {
			 *      $('#example').dataTable( {
			 *        "language": {
			 *          "zeroRecords": "No records to display"
			 *        }
			 *      } );
			 *    } );
			 */
			"sZeroRecords": "No matching records found"
		},
	
	
		/**
		 * This parameter allows you to have define the global filtering state at
		 * initialisation time. As an object the `search` parameter must be
		 * defined, but all other parameters are optional. When `regex` is true,
		 * the search string will be treated as a regular expression, when false
		 * (default) it will be treated as a straight string. When `smart`
		 * DataTables will use it's smart filtering methods (to word match at
		 * any point in the data), when false this will not be done.
		 *  @namespace
		 *  @extends DataTable.models.oSearch
		 *
		 *  @dtopt Options
		 *  @name DataTable.defaults.search
		 *
		 *  @example
		 *    $(document).ready( function() {
		 *      $('#example').dataTable( {
		 *        "search": {"search": "Initial search"}
		 *      } );
		 *    } )
		 */
		"oSearch": $.extend( {}, DataTable.models.oSearch ),
	
	
		/**
		 * __Deprecated__ The functionality provided by this parameter has now been
		 * superseded by that provided through `ajax`, which should be used instead.
		 *
		 * By default DataTables will look for the property `data` (or `aaData` for
		 * compatibility with DataTables 1.9-) when obtaining data from an Ajax
		 * source or for server-side processing - this parameter allows that
		 * property to be changed. You can use Javascript dotted object notation to
		 * get a data source for multiple levels of nesting.
		 *  @type string
		 *  @default data
		 *
		 *  @dtopt Options
		 *  @dtopt Server-side
		 *  @name DataTable.defaults.ajaxDataProp
		 *
		 *  @deprecated 1.10. Please use `ajax` for this functionality now.
		 */
		"sAjaxDataProp": "data",
	
	
		/**
		 * __Deprecated__ The functionality provided by this parameter has now been
		 * superseded by that provided through `ajax`, which should be used instead.
		 *
		 * You can instruct DataTables to load data from an external
		 * source using this parameter (use aData if you want to pass data in you
		 * already have). Simply provide a url a JSON object can be obtained from.
		 *  @type string
		 *  @default null
		 *
		 *  @dtopt Options
		 *  @dtopt Server-side
		 *  @name DataTable.defaults.ajaxSource
		 *
		 *  @deprecated 1.10. Please use `ajax` for this functionality now.
		 */
		"sAjaxSource": null,
	
	
		/**
		 * This initialisation variable allows you to specify exactly where in the
		 * DOM you want DataTables to inject the various controls it adds to the page
		 * (for example you might want the pagination controls at the top of the
		 * table). DIV elements (with or without a custom class) can also be added to
		 * aid styling. The follow syntax is used:
		 *   <ul>
		 *     <li>The following options are allowed:
		 *       <ul>
		 *         <li>'l' - Length changing</li>
		 *         <li>'f' - Filtering input</li>
		 *         <li>'t' - The table!</li>
		 *         <li>'i' - Information</li>
		 *         <li>'p' - Pagination</li>
		 *         <li>'r' - pRocessing</li>
		 *       </ul>
		 *     </li>
		 *     <li>The following constants are allowed:
		 *       <ul>
		 *         <li>'H' - jQueryUI theme "header" classes ('fg-toolbar ui-widget-header ui-corner-tl ui-corner-tr ui-helper-clearfix')</li>
		 *         <li>'F' - jQueryUI theme "footer" classes ('fg-toolbar ui-widget-header ui-corner-bl ui-corner-br ui-helper-clearfix')</li>
		 *       </ul>
		 *     </li>
		 *     <li>The following syntax is expected:
		 *       <ul>
		 *         <li>'&lt;' and '&gt;' - div elements</li>
		 *         <li>'&lt;"class" and '&gt;' - div with a class</li>
		 *         <li>'&lt;"#id" and '&gt;' - div with an ID</li>
		 *       </ul>
		 *     </li>
		 *     <li>Examples:
		 *       <ul>
		 *         <li>'&lt;"wrapper"flipt&gt;'</li>
		 *         <li>'&lt;lf&lt;t&gt;ip&gt;'</li>
		 *       </ul>
		 *     </li>
		 *   </ul>
		 *  @type string
		 *  @default lfrtip <i>(when `jQueryUI` is false)</i> <b>or</b>
		 *    <"H"lfr>t<"F"ip> <i>(when `jQueryUI` is true)</i>
		 *
		 *  @dtopt Options
		 *  @name DataTable.defaults.dom
		 *
		 *  @example
		 *    $(document).ready( function() {
		 *      $('#example').dataTable( {
		 *        "dom": '&lt;"top"i&gt;rt&lt;"bottom"flp&gt;&lt;"clear"&gt;'
		 *      } );
		 *    } );
		 */
		"sDom": "lfrtip",
	
	
		/**
		 * Search delay option. This will throttle full table searches that use the
		 * DataTables provided search input element (it does not effect calls to
		 * `dt-api search()`, providing a delay before the search is made.
		 *  @type integer
		 *  @default 0
		 *
		 *  @dtopt Options
		 *  @name DataTable.defaults.searchDelay
		 *
		 *  @example
		 *    $(document).ready( function() {
		 *      $('#example').dataTable( {
		 *        "searchDelay": 200
		 *      } );
		 *    } )
		 */
		"searchDelay": null,
	
	
		/**
		 * DataTables features six different built-in options for the buttons to
		 * display for pagination control:
		 *
		 * * `numbers` - Page number buttons only
		 * * `simple` - 'Previous' and 'Next' buttons only
		 * * 'simple_numbers` - 'Previous' and 'Next' buttons, plus page numbers
		 * * `full` - 'First', 'Previous', 'Next' and 'Last' buttons
		 * * `full_numbers` - 'First', 'Previous', 'Next' and 'Last' buttons, plus page numbers
		 * * `first_last_numbers` - 'First' and 'Last' buttons, plus page numbers
		 *  
		 * Further methods can be added using {@link DataTable.ext.oPagination}.
		 *  @type string
		 *  @default simple_numbers
		 *
		 *  @dtopt Options
		 *  @name DataTable.defaults.pagingType
		 *
		 *  @example
		 *    $(document).ready( function() {
		 *      $('#example').dataTable( {
		 *        "pagingType": "full_numbers"
		 *      } );
		 *    } )
		 */
		"sPaginationType": "simple_numbers",
	
	
		/**
		 * Enable horizontal scrolling. When a table is too wide to fit into a
		 * certain layout, or you have a large number of columns in the table, you
		 * can enable x-scrolling to show the table in a viewport, which can be
		 * scrolled. This property can be `true` which will allow the table to
		 * scroll horizontally when needed, or any CSS unit, or a number (in which
		 * case it will be treated as a pixel measurement). Setting as simply `true`
		 * is recommended.
		 *  @type boolean|string
		 *  @default <i>blank string - i.e. disabled</i>
		 *
		 *  @dtopt Features
		 *  @name DataTable.defaults.scrollX
		 *
		 *  @example
		 *    $(document).ready( function() {
		 *      $('#example').dataTable( {
		 *        "scrollX": true,
		 *        "scrollCollapse": true
		 *      } );
		 *    } );
		 */
		"sScrollX": "",
	
	
		/**
		 * This property can be used to force a DataTable to use more width than it
		 * might otherwise do when x-scrolling is enabled. For example if you have a
		 * table which requires to be well spaced, this parameter is useful for
		 * "over-sizing" the table, and thus forcing scrolling. This property can by
		 * any CSS unit, or a number (in which case it will be treated as a pixel
		 * measurement).
		 *  @type string
		 *  @default <i>blank string - i.e. disabled</i>
		 *
		 *  @dtopt Options
		 *  @name DataTable.defaults.scrollXInner
		 *
		 *  @example
		 *    $(document).ready( function() {
		 *      $('#example').dataTable( {
		 *        "scrollX": "100%",
		 *        "scrollXInner": "110%"
		 *      } );
		 *    } );
		 */
		"sScrollXInner": "",
	
	
		/**
		 * Enable vertical scrolling. Vertical scrolling will constrain the DataTable
		 * to the given height, and enable scrolling for any data which overflows the
		 * current viewport. This can be used as an alternative to paging to display
		 * a lot of data in a small area (although paging and scrolling can both be
		 * enabled at the same time). This property can be any CSS unit, or a number
		 * (in which case it will be treated as a pixel measurement).
		 *  @type string
		 *  @default <i>blank string - i.e. disabled</i>
		 *
		 *  @dtopt Features
		 *  @name DataTable.defaults.scrollY
		 *
		 *  @example
		 *    $(document).ready( function() {
		 *      $('#example').dataTable( {
		 *        "scrollY": "200px",
		 *        "paginate": false
		 *      } );
		 *    } );
		 */
		"sScrollY": "",
	
	
		/**
		 * __Deprecated__ The functionality provided by this parameter has now been
		 * superseded by that provided through `ajax`, which should be used instead.
		 *
		 * Set the HTTP method that is used to make the Ajax call for server-side
		 * processing or Ajax sourced data.
		 *  @type string
		 *  @default GET
		 *
		 *  @dtopt Options
		 *  @dtopt Server-side
		 *  @name DataTable.defaults.serverMethod
		 *
		 *  @deprecated 1.10. Please use `ajax` for this functionality now.
		 */
		"sServerMethod": "GET",
	
	
		/**
		 * DataTables makes use of renderers when displaying HTML elements for
		 * a table. These renderers can be added or modified by plug-ins to
		 * generate suitable mark-up for a site. For example the Bootstrap
		 * integration plug-in for DataTables uses a paging button renderer to
		 * display pagination buttons in the mark-up required by Bootstrap.
		 *
		 * For further information about the renderers available see
		 * DataTable.ext.renderer
		 *  @type string|object
		 *  @default null
		 *
		 *  @name DataTable.defaults.renderer
		 *
		 */
		"renderer": null,
	
	
		/**
		 * Set the data property name that DataTables should use to get a row's id
		 * to set as the `id` property in the node.
		 *  @type string
		 *  @default DT_RowId
		 *
		 *  @name DataTable.defaults.rowId
		 */
		"rowId": "DT_RowId"
	};
	
	_fnHungarianMap( DataTable.defaults );
	
	
	
	/*
	 * Developer note - See note in model.defaults.js about the use of Hungarian
	 * notation and camel case.
	 */
	
	/**
	 * Column options that can be given to DataTables at initialisation time.
	 *  @namespace
	 */
	DataTable.defaults.column = {
		/**
		 * Define which column(s) an order will occur on for this column. This
		 * allows a column's ordering to take multiple columns into account when
		 * doing a sort or use the data from a different column. For example first
		 * name / last name columns make sense to do a multi-column sort over the
		 * two columns.
		 *  @type array|int
		 *  @default null <i>Takes the value of the column index automatically</i>
		 *
		 *  @name DataTable.defaults.column.orderData
		 *  @dtopt Columns
		 *
		 *  @example
		 *    // Using `columnDefs`
		 *    $(document).ready( function() {
		 *      $('#example').dataTable( {
		 *        "columnDefs": [
		 *          { "orderData": [ 0, 1 ], "targets": [ 0 ] },
		 *          { "orderData": [ 1, 0 ], "targets": [ 1 ] },
		 *          { "orderData": 2, "targets": [ 2 ] }
		 *        ]
		 *      } );
		 *    } );
		 *
		 *  @example
		 *    // Using `columns`
		 *    $(document).ready( function() {
		 *      $('#example').dataTable( {
		 *        "columns": [
		 *          { "orderData": [ 0, 1 ] },
		 *          { "orderData": [ 1, 0 ] },
		 *          { "orderData": 2 },
		 *          null,
		 *          null
		 *        ]
		 *      } );
		 *    } );
		 */
		"aDataSort": null,
		"iDataSort": -1,
	
	
		/**
		 * You can control the default ordering direction, and even alter the
		 * behaviour of the sort handler (i.e. only allow ascending ordering etc)
		 * using this parameter.
		 *  @type array
		 *  @default [ 'asc', 'desc' ]
		 *
		 *  @name DataTable.defaults.column.orderSequence
		 *  @dtopt Columns
		 *
		 *  @example
		 *    // Using `columnDefs`
		 *    $(document).ready( function() {
		 *      $('#example').dataTable( {
		 *        "columnDefs": [
		 *          { "orderSequence": [ "asc" ], "targets": [ 1 ] },
		 *          { "orderSequence": [ "desc", "asc", "asc" ], "targets": [ 2 ] },
		 *          { "orderSequence": [ "desc" ], "targets": [ 3 ] }
		 *        ]
		 *      } );
		 *    } );
		 *
		 *  @example
		 *    // Using `columns`
		 *    $(document).ready( function() {
		 *      $('#example').dataTable( {
		 *        "columns": [
		 *          null,
		 *          { "orderSequence": [ "asc" ] },
		 *          { "orderSequence": [ "desc", "asc", "asc" ] },
		 *          { "orderSequence": [ "desc" ] },
		 *          null
		 *        ]
		 *      } );
		 *    } );
		 */
		"asSorting": [ 'asc', 'desc' ],
	
	
		/**
		 * Enable or disable filtering on the data in this column.
		 *  @type boolean
		 *  @default true
		 *
		 *  @name DataTable.defaults.column.searchable
		 *  @dtopt Columns
		 *
		 *  @example
		 *    // Using `columnDefs`
		 *    $(document).ready( function() {
		 *      $('#example').dataTable( {
		 *        "columnDefs": [
		 *          { "searchable": false, "targets": [ 0 ] }
		 *        ] } );
		 *    } );
		 *
		 *  @example
		 *    // Using `columns`
		 *    $(document).ready( function() {
		 *      $('#example').dataTable( {
		 *        "columns": [
		 *          { "searchable": false },
		 *          null,
		 *          null,
		 *          null,
		 *          null
		 *        ] } );
		 *    } );
		 */
		"bSearchable": true,
	
	
		/**
		 * Enable or disable ordering on this column.
		 *  @type boolean
		 *  @default true
		 *
		 *  @name DataTable.defaults.column.orderable
		 *  @dtopt Columns
		 *
		 *  @example
		 *    // Using `columnDefs`
		 *    $(document).ready( function() {
		 *      $('#example').dataTable( {
		 *        "columnDefs": [
		 *          { "orderable": false, "targets": [ 0 ] }
		 *        ] } );
		 *    } );
		 *
		 *  @example
		 *    // Using `columns`
		 *    $(document).ready( function() {
		 *      $('#example').dataTable( {
		 *        "columns": [
		 *          { "orderable": false },
		 *          null,
		 *          null,
		 *          null,
		 *          null
		 *        ] } );
		 *    } );
		 */
		"bSortable": true,
	
	
		/**
		 * Enable or disable the display of this column.
		 *  @type boolean
		 *  @default true
		 *
		 *  @name DataTable.defaults.column.visible
		 *  @dtopt Columns
		 *
		 *  @example
		 *    // Using `columnDefs`
		 *    $(document).ready( function() {
		 *      $('#example').dataTable( {
		 *        "columnDefs": [
		 *          { "visible": false, "targets": [ 0 ] }
		 *        ] } );
		 *    } );
		 *
		 *  @example
		 *    // Using `columns`
		 *    $(document).ready( function() {
		 *      $('#example').dataTable( {
		 *        "columns": [
		 *          { "visible": false },
		 *          null,
		 *          null,
		 *          null,
		 *          null
		 *        ] } );
		 *    } );
		 */
		"bVisible": true,
	
	
		/**
		 * Developer definable function that is called whenever a cell is created (Ajax source,
		 * etc) or processed for input (DOM source). This can be used as a compliment to mRender
		 * allowing you to modify the DOM element (add background colour for example) when the
		 * element is available.
		 *  @type function
		 *  @param {element} td The TD node that has been created
		 *  @param {*} cellData The Data for the cell
		 *  @param {array|object} rowData The data for the whole row
		 *  @param {int} row The row index for the aoData data store
		 *  @param {int} col The column index for aoColumns
		 *
		 *  @name DataTable.defaults.column.createdCell
		 *  @dtopt Columns
		 *
		 *  @example
		 *    $(document).ready( function() {
		 *      $('#example').dataTable( {
		 *        "columnDefs": [ {
		 *          "targets": [3],
		 *          "createdCell": function (td, cellData, rowData, row, col) {
		 *            if ( cellData == "1.7" ) {
		 *              $(td).css('color', 'blue')
		 *            }
		 *          }
		 *        } ]
		 *      });
		 *    } );
		 */
		"fnCreatedCell": null,
	
	
		/**
		 * This parameter has been replaced by `data` in DataTables to ensure naming
		 * consistency. `dataProp` can still be used, as there is backwards
		 * compatibility in DataTables for this option, but it is strongly
		 * recommended that you use `data` in preference to `dataProp`.
		 *  @name DataTable.defaults.column.dataProp
		 */
	
	
		/**
		 * This property can be used to read data from any data source property,
		 * including deeply nested objects / properties. `data` can be given in a
		 * number of different ways which effect its behaviour:
		 *
		 * * `integer` - treated as an array index for the data source. This is the
		 *   default that DataTables uses (incrementally increased for each column).
		 * * `string` - read an object property from the data source. There are
		 *   three 'special' options that can be used in the string to alter how
		 *   DataTables reads the data from the source object:
		 *    * `.` - Dotted Javascript notation. Just as you use a `.` in
		 *      Javascript to read from nested objects, so to can the options
		 *      specified in `data`. For example: `browser.version` or
		 *      `browser.name`. If your object parameter name contains a period, use
		 *      `\\` to escape it - i.e. `first\\.name`.
		 *    * `[]` - Array notation. DataTables can automatically combine data
		 *      from and array source, joining the data with the characters provided
		 *      between the two brackets. For example: `name[, ]` would provide a
		 *      comma-space separated list from the source array. If no characters
		 *      are provided between the brackets, the original array source is
		 *      returned.
		 *    * `()` - Function notation. Adding `()` to the end of a parameter will
		 *      execute a function of the name given. For example: `browser()` for a
		 *      simple function on the data source, `browser.version()` for a
		 *      function in a nested property or even `browser().version` to get an
		 *      object property if the function called returns an object. Note that
		 *      function notation is recommended for use in `render` rather than
		 *      `data` as it is much simpler to use as a renderer.
		 * * `null` - use the original data source for the row rather than plucking
		 *   data directly from it. This action has effects on two other
		 *   initialisation options:
		 *    * `defaultContent` - When null is given as the `data` option and
		 *      `defaultContent` is specified for the column, the value defined by
		 *      `defaultContent` will be used for the cell.
		 *    * `render` - When null is used for the `data` option and the `render`
		 *      option is specified for the column, the whole data source for the
		 *      row is used for the renderer.
		 * * `function` - the function given will be executed whenever DataTables
		 *   needs to set or get the data for a cell in the column. The function
		 *   takes three parameters:
		 *    * Parameters:
		 *      * `{array|object}` The data source for the row
		 *      * `{string}` The type call data requested - this will be 'set' when
		 *        setting data or 'filter', 'display', 'type', 'sort' or undefined
		 *        when gathering data. Note that when `undefined` is given for the
		 *        type DataTables expects to get the raw data for the object back<
		 *      * `{*}` Data to set when the second parameter is 'set'.
		 *    * Return:
		 *      * The return value from the function is not required when 'set' is
		 *        the type of call, but otherwise the return is what will be used
		 *        for the data requested.
		 *
		 * Note that `data` is a getter and setter option. If you just require
		 * formatting of data for output, you will likely want to use `render` which
		 * is simply a getter and thus simpler to use.
		 *
		 * Note that prior to DataTables 1.9.2 `data` was called `mDataProp`. The
		 * name change reflects the flexibility of this property and is consistent
		 * with the naming of mRender. If 'mDataProp' is given, then it will still
		 * be used by DataTables, as it automatically maps the old name to the new
		 * if required.
		 *
		 *  @type string|int|function|null
		 *  @default null <i>Use automatically calculated column index</i>
		 *
		 *  @name DataTable.defaults.column.data
		 *  @dtopt Columns
		 *
		 *  @example
		 *    // Read table data from objects
		 *    // JSON structure for each row:
		 *    //   {
		 *    //      "engine": {value},
		 *    //      "browser": {value},
		 *    //      "platform": {value},
		 *    //      "version": {value},
		 *    //      "grade": {value}
		 *    //   }
		 *    $(document).ready( function() {
		 *      $('#example').dataTable( {
		 *        "ajaxSource": "sources/objects.txt",
		 *        "columns": [
		 *          { "data": "engine" },
		 *          { "data": "browser" },
		 *          { "data": "platform" },
		 *          { "data": "version" },
		 *          { "data": "grade" }
		 *        ]
		 *      } );
		 *    } );
		 *
		 *  @example
		 *    // Read information from deeply nested objects
		 *    // JSON structure for each row:
		 *    //   {
		 *    //      "engine": {value},
		 *    //      "browser": {value},
		 *    //      "platform": {
		 *    //         "inner": {value}
		 *    //      },
		 *    //      "details": [
		 *    //         {value}, {value}
		 *    //      ]
		 *    //   }
		 *    $(document).ready( function() {
		 *      $('#example').dataTable( {
		 *        "ajaxSource": "sources/deep.txt",
		 *        "columns": [
		 *          { "data": "engine" },
		 *          { "data": "browser" },
		 *          { "data": "platform.inner" },
		 *          { "data": "details.0" },
		 *          { "data": "details.1" }
		 *        ]
		 *      } );
		 *    } );
		 *
		 *  @example
		 *    // Using `data` as a function to provide different information for
		 *    // sorting, filtering and display. In this case, currency (price)
		 *    $(document).ready( function() {
		 *      $('#example').dataTable( {
		 *        "columnDefs": [ {
		 *          "targets": [ 0 ],
		 *          "data": function ( source, type, val ) {
		 *            if (type === 'set') {
		 *              source.price = val;
		 *              // Store the computed dislay and filter values for efficiency
		 *              source.price_display = val=="" ? "" : "$"+numberFormat(val);
		 *              source.price_filter  = val=="" ? "" : "$"+numberFormat(val)+" "+val;
		 *              return;
		 *            }
		 *            else if (type === 'display') {
		 *              return source.price_display;
		 *            }
		 *            else if (type === 'filter') {
		 *              return source.price_filter;
		 *            }
		 *            // 'sort', 'type' and undefined all just use the integer
		 *            return source.price;
		 *          }
		 *        } ]
		 *      } );
		 *    } );
		 *
		 *  @example
		 *    // Using default content
		 *    $(document).ready( function() {
		 *      $('#example').dataTable( {
		 *        "columnDefs": [ {
		 *          "targets": [ 0 ],
		 *          "data": null,
		 *          "defaultContent": "Click to edit"
		 *        } ]
		 *      } );
		 *    } );
		 *
		 *  @example
		 *    // Using array notation - outputting a list from an array
		 *    $(document).ready( function() {
		 *      $('#example').dataTable( {
		 *        "columnDefs": [ {
		 *          "targets": [ 0 ],
		 *          "data": "name[, ]"
		 *        } ]
		 *      } );
		 *    } );
		 *
		 */
		"mData": null,
	
	
		/**
		 * This property is the rendering partner to `data` and it is suggested that
		 * when you want to manipulate data for display (including filtering,
		 * sorting etc) without altering the underlying data for the table, use this
		 * property. `render` can be considered to be the the read only companion to
		 * `data` which is read / write (then as such more complex). Like `data`
		 * this option can be given in a number of different ways to effect its
		 * behaviour:
		 *
		 * * `integer` - treated as an array index for the data source. This is the
		 *   default that DataTables uses (incrementally increased for each column).
		 * * `string` - read an object property from the data source. There are
		 *   three 'special' options that can be used in the string to alter how
		 *   DataTables reads the data from the source object:
		 *    * `.` - Dotted Javascript notation. Just as you use a `.` in
		 *      Javascript to read from nested objects, so to can the options
		 *      specified in `data`. For example: `browser.version` or
		 *      `browser.name`. If your object parameter name contains a period, use
		 *      `\\` to escape it - i.e. `first\\.name`.
		 *    * `[]` - Array notation. DataTables can automatically combine data
		 *      from and array source, joining the data with the characters provided
		 *      between the two brackets. For example: `name[, ]` would provide a
		 *      comma-space separated list from the source array. If no characters
		 *      are provided between the brackets, the original array source is
		 *      returned.
		 *    * `()` - Function notation. Adding `()` to the end of a parameter will
		 *      execute a function of the name given. For example: `browser()` for a
		 *      simple function on the data source, `browser.version()` for a
		 *      function in a nested property or even `browser().version` to get an
		 *      object property if the function called returns an object.
		 * * `object` - use different data for the different data types requested by
		 *   DataTables ('filter', 'display', 'type' or 'sort'). The property names
		 *   of the object is the data type the property refers to and the value can
		 *   defined using an integer, string or function using the same rules as
		 *   `render` normally does. Note that an `_` option _must_ be specified.
		 *   This is the default value to use if you haven't specified a value for
		 *   the data type requested by DataTables.
		 * * `function` - the function given will be executed whenever DataTables
		 *   needs to set or get the data for a cell in the column. The function
		 *   takes three parameters:
		 *    * Parameters:
		 *      * {array|object} The data source for the row (based on `data`)
		 *      * {string} The type call data requested - this will be 'filter',
		 *        'display', 'type' or 'sort'.
		 *      * {array|object} The full data source for the row (not based on
		 *        `data`)
		 *    * Return:
		 *      * The return value from the function is what will be used for the
		 *        data requested.
		 *
		 *  @type string|int|function|object|null
		 *  @default null Use the data source value.
		 *
		 *  @name DataTable.defaults.column.render
		 *  @dtopt Columns
		 *
		 *  @example
		 *    // Create a comma separated list from an array of objects
		 *    $(document).ready( function() {
		 *      $('#example').dataTable( {
		 *        "ajaxSource": "sources/deep.txt",
		 *        "columns": [
		 *          { "data": "engine" },
		 *          { "data": "browser" },
		 *          {
		 *            "data": "platform",
		 *            "render": "[, ].name"
		 *          }
		 *        ]
		 *      } );
		 *    } );
		 *
		 *  @example
		 *    // Execute a function to obtain data
		 *    $(document).ready( function() {
		 *      $('#example').dataTable( {
		 *        "columnDefs": [ {
		 *          "targets": [ 0 ],
		 *          "data": null, // Use the full data source object for the renderer's source
		 *          "render": "browserName()"
		 *        } ]
		 *      } );
		 *    } );
		 *
		 *  @example
		 *    // As an object, extracting different data for the different types
		 *    // This would be used with a data source such as:
		 *    //   { "phone": 5552368, "phone_filter": "5552368 555-2368", "phone_display": "555-2368" }
		 *    // Here the `phone` integer is used for sorting and type detection, while `phone_filter`
		 *    // (which has both forms) is used for filtering for if a user inputs either format, while
		 *    // the formatted phone number is the one that is shown in the table.
		 *    $(document).ready( function() {
		 *      $('#example').dataTable( {
		 *        "columnDefs": [ {
		 *          "targets": [ 0 ],
		 *          "data": null, // Use the full data source object for the renderer's source
		 *          "render": {
		 *            "_": "phone",
		 *            "filter": "phone_filter",
		 *            "display": "phone_display"
		 *          }
		 *        } ]
		 *      } );
		 *    } );
		 *
		 *  @example
		 *    // Use as a function to create a link from the data source
		 *    $(document).ready( function() {
		 *      $('#example').dataTable( {
		 *        "columnDefs": [ {
		 *          "targets": [ 0 ],
		 *          "data": "download_link",
		 *          "render": function ( data, type, full ) {
		 *            return '<a href="'+data+'">Download</a>';
		 *          }
		 *        } ]
		 *      } );
		 *    } );
		 */
		"mRender": null,
	
	
		/**
		 * Change the cell type created for the column - either TD cells or TH cells. This
		 * can be useful as TH cells have semantic meaning in the table body, allowing them
		 * to act as a header for a row (you may wish to add scope='row' to the TH elements).
		 *  @type string
		 *  @default td
		 *
		 *  @name DataTable.defaults.column.cellType
		 *  @dtopt Columns
		 *
		 *  @example
		 *    // Make the first column use TH cells
		 *    $(document).ready( function() {
		 *      $('#example').dataTable( {
		 *        "columnDefs": [ {
		 *          "targets": [ 0 ],
		 *          "cellType": "th"
		 *        } ]
		 *      } );
		 *    } );
		 */
		"sCellType": "td",
	
	
		/**
		 * Class to give to each cell in this column.
		 *  @type string
		 *  @default <i>Empty string</i>
		 *
		 *  @name DataTable.defaults.column.class
		 *  @dtopt Columns
		 *
		 *  @example
		 *    // Using `columnDefs`
		 *    $(document).ready( function() {
		 *      $('#example').dataTable( {
		 *        "columnDefs": [
		 *          { "class": "my_class", "targets": [ 0 ] }
		 *        ]
		 *      } );
		 *    } );
		 *
		 *  @example
		 *    // Using `columns`
		 *    $(document).ready( function() {
		 *      $('#example').dataTable( {
		 *        "columns": [
		 *          { "class": "my_class" },
		 *          null,
		 *          null,
		 *          null,
		 *          null
		 *        ]
		 *      } );
		 *    } );
		 */
		"sClass": "",
	
		/**
		 * When DataTables calculates the column widths to assign to each column,
		 * it finds the longest string in each column and then constructs a
		 * temporary table and reads the widths from that. The problem with this
		 * is that "mmm" is much wider then "iiii", but the latter is a longer
		 * string - thus the calculation can go wrong (doing it properly and putting
		 * it into an DOM object and measuring that is horribly(!) slow). Thus as
		 * a "work around" we provide this option. It will append its value to the
		 * text that is found to be the longest string for the column - i.e. padding.
		 * Generally you shouldn't need this!
		 *  @type string
		 *  @default <i>Empty string<i>
		 *
		 *  @name DataTable.defaults.column.contentPadding
		 *  @dtopt Columns
		 *
		 *  @example
		 *    // Using `columns`
		 *    $(document).ready( function() {
		 *      $('#example').dataTable( {
		 *        "columns": [
		 *          null,
		 *          null,
		 *          null,
		 *          {
		 *            "contentPadding": "mmm"
		 *          }
		 *        ]
		 *      } );
		 *    } );
		 */
		"sContentPadding": "",
	
	
		/**
		 * Allows a default value to be given for a column's data, and will be used
		 * whenever a null data source is encountered (this can be because `data`
		 * is set to null, or because the data source itself is null).
		 *  @type string
		 *  @default null
		 *
		 *  @name DataTable.defaults.column.defaultContent
		 *  @dtopt Columns
		 *
		 *  @example
		 *    // Using `columnDefs`
		 *    $(document).ready( function() {
		 *      $('#example').dataTable( {
		 *        "columnDefs": [
		 *          {
		 *            "data": null,
		 *            "defaultContent": "Edit",
		 *            "targets": [ -1 ]
		 *          }
		 *        ]
		 *      } );
		 *    } );
		 *
		 *  @example
		 *    // Using `columns`
		 *    $(document).ready( function() {
		 *      $('#example').dataTable( {
		 *        "columns": [
		 *          null,
		 *          null,
		 *          null,
		 *          {
		 *            "data": null,
		 *            "defaultContent": "Edit"
		 *          }
		 *        ]
		 *      } );
		 *    } );
		 */
		"sDefaultContent": null,
	
	
		/**
		 * This parameter is only used in DataTables' server-side processing. It can
		 * be exceptionally useful to know what columns are being displayed on the
		 * client side, and to map these to database fields. When defined, the names
		 * also allow DataTables to reorder information from the server if it comes
		 * back in an unexpected order (i.e. if you switch your columns around on the
		 * client-side, your server-side code does not also need updating).
		 *  @type string
		 *  @default <i>Empty string</i>
		 *
		 *  @name DataTable.defaults.column.name
		 *  @dtopt Columns
		 *
		 *  @example
		 *    // Using `columnDefs`
		 *    $(document).ready( function() {
		 *      $('#example').dataTable( {
		 *        "columnDefs": [
		 *          { "name": "engine", "targets": [ 0 ] },
		 *          { "name": "browser", "targets": [ 1 ] },
		 *          { "name": "platform", "targets": [ 2 ] },
		 *          { "name": "version", "targets": [ 3 ] },
		 *          { "name": "grade", "targets": [ 4 ] }
		 *        ]
		 *      } );
		 *    } );
		 *
		 *  @example
		 *    // Using `columns`
		 *    $(document).ready( function() {
		 *      $('#example').dataTable( {
		 *        "columns": [
		 *          { "name": "engine" },
		 *          { "name": "browser" },
		 *          { "name": "platform" },
		 *          { "name": "version" },
		 *          { "name": "grade" }
		 *        ]
		 *      } );
		 *    } );
		 */
		"sName": "",
	
	
		/**
		 * Defines a data source type for the ordering which can be used to read
		 * real-time information from the table (updating the internally cached
		 * version) prior to ordering. This allows ordering to occur on user
		 * editable elements such as form inputs.
		 *  @type string
		 *  @default std
		 *
		 *  @name DataTable.defaults.column.orderDataType
		 *  @dtopt Columns
		 *
		 *  @example
		 *    // Using `columnDefs`
		 *    $(document).ready( function() {
		 *      $('#example').dataTable( {
		 *        "columnDefs": [
		 *          { "orderDataType": "dom-text", "targets": [ 2, 3 ] },
		 *          { "type": "numeric", "targets": [ 3 ] },
		 *          { "orderDataType": "dom-select", "targets": [ 4 ] },
		 *          { "orderDataType": "dom-checkbox", "targets": [ 5 ] }
		 *        ]
		 *      } );
		 *    } );
		 *
		 *  @example
		 *    // Using `columns`
		 *    $(document).ready( function() {
		 *      $('#example').dataTable( {
		 *        "columns": [
		 *          null,
		 *          null,
		 *          { "orderDataType": "dom-text" },
		 *          { "orderDataType": "dom-text", "type": "numeric" },
		 *          { "orderDataType": "dom-select" },
		 *          { "orderDataType": "dom-checkbox" }
		 *        ]
		 *      } );
		 *    } );
		 */
		"sSortDataType": "std",
	
	
		/**
		 * The title of this column.
		 *  @type string
		 *  @default null <i>Derived from the 'TH' value for this column in the
		 *    original HTML table.</i>
		 *
		 *  @name DataTable.defaults.column.title
		 *  @dtopt Columns
		 *
		 *  @example
		 *    // Using `columnDefs`
		 *    $(document).ready( function() {
		 *      $('#example').dataTable( {
		 *        "columnDefs": [
		 *          { "title": "My column title", "targets": [ 0 ] }
		 *        ]
		 *      } );
		 *    } );
		 *
		 *  @example
		 *    // Using `columns`
		 *    $(document).ready( function() {
		 *      $('#example').dataTable( {
		 *        "columns": [
		 *          { "title": "My column title" },
		 *          null,
		 *          null,
		 *          null,
		 *          null
		 *        ]
		 *      } );
		 *    } );
		 */
		"sTitle": null,
	
	
		/**
		 * The type allows you to specify how the data for this column will be
		 * ordered. Four types (string, numeric, date and html (which will strip
		 * HTML tags before ordering)) are currently available. Note that only date
		 * formats understood by Javascript's Date() object will be accepted as type
		 * date. For example: "Mar 26, 2008 5:03 PM". May take the values: 'string',
		 * 'numeric', 'date' or 'html' (by default). Further types can be adding
		 * through plug-ins.
		 *  @type string
		 *  @default null <i>Auto-detected from raw data</i>
		 *
		 *  @name DataTable.defaults.column.type
		 *  @dtopt Columns
		 *
		 *  @example
		 *    // Using `columnDefs`
		 *    $(document).ready( function() {
		 *      $('#example').dataTable( {
		 *        "columnDefs": [
		 *          { "type": "html", "targets": [ 0 ] }
		 *        ]
		 *      } );
		 *    } );
		 *
		 *  @example
		 *    // Using `columns`
		 *    $(document).ready( function() {
		 *      $('#example').dataTable( {
		 *        "columns": [
		 *          { "type": "html" },
		 *          null,
		 *          null,
		 *          null,
		 *          null
		 *        ]
		 *      } );
		 *    } );
		 */
		"sType": null,
	
	
		/**
		 * Defining the width of the column, this parameter may take any CSS value
		 * (3em, 20px etc). DataTables applies 'smart' widths to columns which have not
		 * been given a specific width through this interface ensuring that the table
		 * remains readable.
		 *  @type string
		 *  @default null <i>Automatic</i>
		 *
		 *  @name DataTable.defaults.column.width
		 *  @dtopt Columns
		 *
		 *  @example
		 *    // Using `columnDefs`
		 *    $(document).ready( function() {
		 *      $('#example').dataTable( {
		 *        "columnDefs": [
		 *          { "width": "20%", "targets": [ 0 ] }
		 *        ]
		 *      } );
		 *    } );
		 *
		 *  @example
		 *    // Using `columns`
		 *    $(document).ready( function() {
		 *      $('#example').dataTable( {
		 *        "columns": [
		 *          { "width": "20%" },
		 *          null,
		 *          null,
		 *          null,
		 *          null
		 *        ]
		 *      } );
		 *    } );
		 */
		"sWidth": null
	};
	
	_fnHungarianMap( DataTable.defaults.column );
	
	
	
	/**
	 * DataTables settings object - this holds all the information needed for a
	 * given table, including configuration, data and current application of the
	 * table options. DataTables does not have a single instance for each DataTable
	 * with the settings attached to that instance, but rather instances of the
	 * DataTable "class" are created on-the-fly as needed (typically by a
	 * $().dataTable() call) and the settings object is then applied to that
	 * instance.
	 *
	 * Note that this object is related to {@link DataTable.defaults} but this
	 * one is the internal data store for DataTables's cache of columns. It should
	 * NOT be manipulated outside of DataTables. Any configuration should be done
	 * through the initialisation options.
	 *  @namespace
	 *  @todo Really should attach the settings object to individual instances so we
	 *    don't need to create new instances on each $().dataTable() call (if the
	 *    table already exists). It would also save passing oSettings around and
	 *    into every single function. However, this is a very significant
	 *    architecture change for DataTables and will almost certainly break
	 *    backwards compatibility with older installations. This is something that
	 *    will be done in 2.0.
	 */
	DataTable.models.oSettings = {
		/**
		 * Primary features of DataTables and their enablement state.
		 *  @namespace
		 */
		"oFeatures": {
	
			/**
			 * Flag to say if DataTables should automatically try to calculate the
			 * optimum table and columns widths (true) or not (false).
			 * Note that this parameter will be set by the initialisation routine. To
			 * set a default use {@link DataTable.defaults}.
			 *  @type boolean
			 */
			"bAutoWidth": null,
	
			/**
			 * Delay the creation of TR and TD elements until they are actually
			 * needed by a driven page draw. This can give a significant speed
			 * increase for Ajax source and Javascript source data, but makes no
			 * difference at all fro DOM and server-side processing tables.
			 * Note that this parameter will be set by the initialisation routine. To
			 * set a default use {@link DataTable.defaults}.
			 *  @type boolean
			 */
			"bDeferRender": null,
	
			/**
			 * Enable filtering on the table or not. Note that if this is disabled
			 * then there is no filtering at all on the table, including fnFilter.
			 * To just remove the filtering input use sDom and remove the 'f' option.
			 * Note that this parameter will be set by the initialisation routine. To
			 * set a default use {@link DataTable.defaults}.
			 *  @type boolean
			 */
			"bFilter": null,
	
			/**
			 * Table information element (the 'Showing x of y records' div) enable
			 * flag.
			 * Note that this parameter will be set by the initialisation routine. To
			 * set a default use {@link DataTable.defaults}.
			 *  @type boolean
			 */
			"bInfo": null,
	
			/**
			 * Present a user control allowing the end user to change the page size
			 * when pagination is enabled.
			 * Note that this parameter will be set by the initialisation routine. To
			 * set a default use {@link DataTable.defaults}.
			 *  @type boolean
			 */
			"bLengthChange": null,
	
			/**
			 * Pagination enabled or not. Note that if this is disabled then length
			 * changing must also be disabled.
			 * Note that this parameter will be set by the initialisation routine. To
			 * set a default use {@link DataTable.defaults}.
			 *  @type boolean
			 */
			"bPaginate": null,
	
			/**
			 * Processing indicator enable flag whenever DataTables is enacting a
			 * user request - typically an Ajax request for server-side processing.
			 * Note that this parameter will be set by the initialisation routine. To
			 * set a default use {@link DataTable.defaults}.
			 *  @type boolean
			 */
			"bProcessing": null,
	
			/**
			 * Server-side processing enabled flag - when enabled DataTables will
			 * get all data from the server for every draw - there is no filtering,
			 * sorting or paging done on the client-side.
			 * Note that this parameter will be set by the initialisation routine. To
			 * set a default use {@link DataTable.defaults}.
			 *  @type boolean
			 */
			"bServerSide": null,
	
			/**
			 * Sorting enablement flag.
			 * Note that this parameter will be set by the initialisation routine. To
			 * set a default use {@link DataTable.defaults}.
			 *  @type boolean
			 */
			"bSort": null,
	
			/**
			 * Multi-column sorting
			 * Note that this parameter will be set by the initialisation routine. To
			 * set a default use {@link DataTable.defaults}.
			 *  @type boolean
			 */
			"bSortMulti": null,
	
			/**
			 * Apply a class to the columns which are being sorted to provide a
			 * visual highlight or not. This can slow things down when enabled since
			 * there is a lot of DOM interaction.
			 * Note that this parameter will be set by the initialisation routine. To
			 * set a default use {@link DataTable.defaults}.
			 *  @type boolean
			 */
			"bSortClasses": null,
	
			/**
			 * State saving enablement flag.
			 * Note that this parameter will be set by the initialisation routine. To
			 * set a default use {@link DataTable.defaults}.
			 *  @type boolean
			 */
			"bStateSave": null
		},
	
	
		/**
		 * Scrolling settings for a table.
		 *  @namespace
		 */
		"oScroll": {
			/**
			 * When the table is shorter in height than sScrollY, collapse the
			 * table container down to the height of the table (when true).
			 * Note that this parameter will be set by the initialisation routine. To
			 * set a default use {@link DataTable.defaults}.
			 *  @type boolean
			 */
			"bCollapse": null,
	
			/**
			 * Width of the scrollbar for the web-browser's platform. Calculated
			 * during table initialisation.
			 *  @type int
			 *  @default 0
			 */
			"iBarWidth": 0,
	
			/**
			 * Viewport width for horizontal scrolling. Horizontal scrolling is
			 * disabled if an empty string.
			 * Note that this parameter will be set by the initialisation routine. To
			 * set a default use {@link DataTable.defaults}.
			 *  @type string
			 */
			"sX": null,
	
			/**
			 * Width to expand the table to when using x-scrolling. Typically you
			 * should not need to use this.
			 * Note that this parameter will be set by the initialisation routine. To
			 * set a default use {@link DataTable.defaults}.
			 *  @type string
			 *  @deprecated
			 */
			"sXInner": null,
	
			/**
			 * Viewport height for vertical scrolling. Vertical scrolling is disabled
			 * if an empty string.
			 * Note that this parameter will be set by the initialisation routine. To
			 * set a default use {@link DataTable.defaults}.
			 *  @type string
			 */
			"sY": null
		},
	
		/**
		 * Language information for the table.
		 *  @namespace
		 *  @extends DataTable.defaults.oLanguage
		 */
		"oLanguage": {
			/**
			 * Information callback function. See
			 * {@link DataTable.defaults.fnInfoCallback}
			 *  @type function
			 *  @default null
			 */
			"fnInfoCallback": null
		},
	
		/**
		 * Browser support parameters
		 *  @namespace
		 */
		"oBrowser": {
			/**
			 * Indicate if the browser incorrectly calculates width:100% inside a
			 * scrolling element (IE6/7)
			 *  @type boolean
			 *  @default false
			 */
			"bScrollOversize": false,
	
			/**
			 * Determine if the vertical scrollbar is on the right or left of the
			 * scrolling container - needed for rtl language layout, although not
			 * all browsers move the scrollbar (Safari).
			 *  @type boolean
			 *  @default false
			 */
			"bScrollbarLeft": false,
	
			/**
			 * Flag for if `getBoundingClientRect` is fully supported or not
			 *  @type boolean
			 *  @default false
			 */
			"bBounding": false,
	
			/**
			 * Browser scrollbar width
			 *  @type integer
			 *  @default 0
			 */
			"barWidth": 0
		},
	
	
		"ajax": null,
	
	
		/**
		 * Array referencing the nodes which are used for the features. The
		 * parameters of this object match what is allowed by sDom - i.e.
		 *   <ul>
		 *     <li>'l' - Length changing</li>
		 *     <li>'f' - Filtering input</li>
		 *     <li>'t' - The table!</li>
		 *     <li>'i' - Information</li>
		 *     <li>'p' - Pagination</li>
		 *     <li>'r' - pRocessing</li>
		 *   </ul>
		 *  @type array
		 *  @default []
		 */
		"aanFeatures": [],
	
		/**
		 * Store data information - see {@link DataTable.models.oRow} for detailed
		 * information.
		 *  @type array
		 *  @default []
		 */
		"aoData": [],
	
		/**
		 * Array of indexes which are in the current display (after filtering etc)
		 *  @type array
		 *  @default []
		 */
		"aiDisplay": [],
	
		/**
		 * Array of indexes for display - no filtering
		 *  @type array
		 *  @default []
		 */
		"aiDisplayMaster": [],
	
		/**
		 * Map of row ids to data indexes
		 *  @type object
		 *  @default {}
		 */
		"aIds": {},
	
		/**
		 * Store information about each column that is in use
		 *  @type array
		 *  @default []
		 */
		"aoColumns": [],
	
		/**
		 * Store information about the table's header
		 *  @type array
		 *  @default []
		 */
		"aoHeader": [],
	
		/**
		 * Store information about the table's footer
		 *  @type array
		 *  @default []
		 */
		"aoFooter": [],
	
		/**
		 * Store the applied global search information in case we want to force a
		 * research or compare the old search to a new one.
		 * Note that this parameter will be set by the initialisation routine. To
		 * set a default use {@link DataTable.defaults}.
		 *  @namespace
		 *  @extends DataTable.models.oSearch
		 */
		"oPreviousSearch": {},
	
		/**
		 * Store the applied search for each column - see
		 * {@link DataTable.models.oSearch} for the format that is used for the
		 * filtering information for each column.
		 *  @type array
		 *  @default []
		 */
		"aoPreSearchCols": [],
	
		/**
		 * Sorting that is applied to the table. Note that the inner arrays are
		 * used in the following manner:
		 * <ul>
		 *   <li>Index 0 - column number</li>
		 *   <li>Index 1 - current sorting direction</li>
		 * </ul>
		 * Note that this parameter will be set by the initialisation routine. To
		 * set a default use {@link DataTable.defaults}.
		 *  @type array
		 *  @todo These inner arrays should really be objects
		 */
		"aaSorting": null,
	
		/**
		 * Sorting that is always applied to the table (i.e. prefixed in front of
		 * aaSorting).
		 * Note that this parameter will be set by the initialisation routine. To
		 * set a default use {@link DataTable.defaults}.
		 *  @type array
		 *  @default []
		 */
		"aaSortingFixed": [],
	
		/**
		 * Classes to use for the striping of a table.
		 * Note that this parameter will be set by the initialisation routine. To
		 * set a default use {@link DataTable.defaults}.
		 *  @type array
		 *  @default []
		 */
		"asStripeClasses": null,
	
		/**
		 * If restoring a table - we should restore its striping classes as well
		 *  @type array
		 *  @default []
		 */
		"asDestroyStripes": [],
	
		/**
		 * If restoring a table - we should restore its width
		 *  @type int
		 *  @default 0
		 */
		"sDestroyWidth": 0,
	
		/**
		 * Callback functions array for every time a row is inserted (i.e. on a draw).
		 *  @type array
		 *  @default []
		 */
		"aoRowCallback": [],
	
		/**
		 * Callback functions for the header on each draw.
		 *  @type array
		 *  @default []
		 */
		"aoHeaderCallback": [],
	
		/**
		 * Callback function for the footer on each draw.
		 *  @type array
		 *  @default []
		 */
		"aoFooterCallback": [],
	
		/**
		 * Array of callback functions for draw callback functions
		 *  @type array
		 *  @default []
		 */
		"aoDrawCallback": [],
	
		/**
		 * Array of callback functions for row created function
		 *  @type array
		 *  @default []
		 */
		"aoRowCreatedCallback": [],
	
		/**
		 * Callback functions for just before the table is redrawn. A return of
		 * false will be used to cancel the draw.
		 *  @type array
		 *  @default []
		 */
		"aoPreDrawCallback": [],
	
		/**
		 * Callback functions for when the table has been initialised.
		 *  @type array
		 *  @default []
		 */
		"aoInitComplete": [],
	
	
		/**
		 * Callbacks for modifying the settings to be stored for state saving, prior to
		 * saving state.
		 *  @type array
		 *  @default []
		 */
		"aoStateSaveParams": [],
	
		/**
		 * Callbacks for modifying the settings that have been stored for state saving
		 * prior to using the stored values to restore the state.
		 *  @type array
		 *  @default []
		 */
		"aoStateLoadParams": [],
	
		/**
		 * Callbacks for operating on the settings object once the saved state has been
		 * loaded
		 *  @type array
		 *  @default []
		 */
		"aoStateLoaded": [],
	
		/**
		 * Cache the table ID for quick access
		 *  @type string
		 *  @default <i>Empty string</i>
		 */
		"sTableId": "",
	
		/**
		 * The TABLE node for the main table
		 *  @type node
		 *  @default null
		 */
		"nTable": null,
	
		/**
		 * Permanent ref to the thead element
		 *  @type node
		 *  @default null
		 */
		"nTHead": null,
	
		/**
		 * Permanent ref to the tfoot element - if it exists
		 *  @type node
		 *  @default null
		 */
		"nTFoot": null,
	
		/**
		 * Permanent ref to the tbody element
		 *  @type node
		 *  @default null
		 */
		"nTBody": null,
	
		/**
		 * Cache the wrapper node (contains all DataTables controlled elements)
		 *  @type node
		 *  @default null
		 */
		"nTableWrapper": null,
	
		/**
		 * Indicate if when using server-side processing the loading of data
		 * should be deferred until the second draw.
		 * Note that this parameter will be set by the initialisation routine. To
		 * set a default use {@link DataTable.defaults}.
		 *  @type boolean
		 *  @default false
		 */
		"bDeferLoading": false,
	
		/**
		 * Indicate if all required information has been read in
		 *  @type boolean
		 *  @default false
		 */
		"bInitialised": false,
	
		/**
		 * Information about open rows. Each object in the array has the parameters
		 * 'nTr' and 'nParent'
		 *  @type array
		 *  @default []
		 */
		"aoOpenRows": [],
	
		/**
		 * Dictate the positioning of DataTables' control elements - see
		 * {@link DataTable.model.oInit.sDom}.
		 * Note that this parameter will be set by the initialisation routine. To
		 * set a default use {@link DataTable.defaults}.
		 *  @type string
		 *  @default null
		 */
		"sDom": null,
	
		/**
		 * Search delay (in mS)
		 *  @type integer
		 *  @default null
		 */
		"searchDelay": null,
	
		/**
		 * Which type of pagination should be used.
		 * Note that this parameter will be set by the initialisation routine. To
		 * set a default use {@link DataTable.defaults}.
		 *  @type string
		 *  @default two_button
		 */
		"sPaginationType": "two_button",
	
		/**
		 * The state duration (for `stateSave`) in seconds.
		 * Note that this parameter will be set by the initialisation routine. To
		 * set a default use {@link DataTable.defaults}.
		 *  @type int
		 *  @default 0
		 */
		"iStateDuration": 0,
	
		/**
		 * Array of callback functions for state saving. Each array element is an
		 * object with the following parameters:
		 *   <ul>
		 *     <li>function:fn - function to call. Takes two parameters, oSettings
		 *       and the JSON string to save that has been thus far created. Returns
		 *       a JSON string to be inserted into a json object
		 *       (i.e. '"param": [ 0, 1, 2]')</li>
		 *     <li>string:sName - name of callback</li>
		 *   </ul>
		 *  @type array
		 *  @default []
		 */
		"aoStateSave": [],
	
		/**
		 * Array of callback functions for state loading. Each array element is an
		 * object with the following parameters:
		 *   <ul>
		 *     <li>function:fn - function to call. Takes two parameters, oSettings
		 *       and the object stored. May return false to cancel state loading</li>
		 *     <li>string:sName - name of callback</li>
		 *   </ul>
		 *  @type array
		 *  @default []
		 */
		"aoStateLoad": [],
	
		/**
		 * State that was saved. Useful for back reference
		 *  @type object
		 *  @default null
		 */
		"oSavedState": null,
	
		/**
		 * State that was loaded. Useful for back reference
		 *  @type object
		 *  @default null
		 */
		"oLoadedState": null,
	
		/**
		 * Source url for AJAX data for the table.
		 * Note that this parameter will be set by the initialisation routine. To
		 * set a default use {@link DataTable.defaults}.
		 *  @type string
		 *  @default null
		 */
		"sAjaxSource": null,
	
		/**
		 * Property from a given object from which to read the table data from. This
		 * can be an empty string (when not server-side processing), in which case
		 * it is  assumed an an array is given directly.
		 * Note that this parameter will be set by the initialisation routine. To
		 * set a default use {@link DataTable.defaults}.
		 *  @type string
		 */
		"sAjaxDataProp": null,
	
		/**
		 * Note if draw should be blocked while getting data
		 *  @type boolean
		 *  @default true
		 */
		"bAjaxDataGet": true,
	
		/**
		 * The last jQuery XHR object that was used for server-side data gathering.
		 * This can be used for working with the XHR information in one of the
		 * callbacks
		 *  @type object
		 *  @default null
		 */
		"jqXHR": null,
	
		/**
		 * JSON returned from the server in the last Ajax request
		 *  @type object
		 *  @default undefined
		 */
		"json": undefined,
	
		/**
		 * Data submitted as part of the last Ajax request
		 *  @type object
		 *  @default undefined
		 */
		"oAjaxData": undefined,
	
		/**
		 * Function to get the server-side data.
		 * Note that this parameter will be set by the initialisation routine. To
		 * set a default use {@link DataTable.defaults}.
		 *  @type function
		 */
		"fnServerData": null,
	
		/**
		 * Functions which are called prior to sending an Ajax request so extra
		 * parameters can easily be sent to the server
		 *  @type array
		 *  @default []
		 */
		"aoServerParams": [],
	
		/**
		 * Send the XHR HTTP method - GET or POST (could be PUT or DELETE if
		 * required).
		 * Note that this parameter will be set by the initialisation routine. To
		 * set a default use {@link DataTable.defaults}.
		 *  @type string
		 */
		"sServerMethod": null,
	
		/**
		 * Format numbers for display.
		 * Note that this parameter will be set by the initialisation routine. To
		 * set a default use {@link DataTable.defaults}.
		 *  @type function
		 */
		"fnFormatNumber": null,
	
		/**
		 * List of options that can be used for the user selectable length menu.
		 * Note that this parameter will be set by the initialisation routine. To
		 * set a default use {@link DataTable.defaults}.
		 *  @type array
		 *  @default []
		 */
		"aLengthMenu": null,
	
		/**
		 * Counter for the draws that the table does. Also used as a tracker for
		 * server-side processing
		 *  @type int
		 *  @default 0
		 */
		"iDraw": 0,
	
		/**
		 * Indicate if a redraw is being done - useful for Ajax
		 *  @type boolean
		 *  @default false
		 */
		"bDrawing": false,
	
		/**
		 * Draw index (iDraw) of the last error when parsing the returned data
		 *  @type int
		 *  @default -1
		 */
		"iDrawError": -1,
	
		/**
		 * Paging display length
		 *  @type int
		 *  @default 10
		 */
		"_iDisplayLength": 10,
	
		/**
		 * Paging start point - aiDisplay index
		 *  @type int
		 *  @default 0
		 */
		"_iDisplayStart": 0,
	
		/**
		 * Server-side processing - number of records in the result set
		 * (i.e. before filtering), Use fnRecordsTotal rather than
		 * this property to get the value of the number of records, regardless of
		 * the server-side processing setting.
		 *  @type int
		 *  @default 0
		 *  @private
		 */
		"_iRecordsTotal": 0,
	
		/**
		 * Server-side processing - number of records in the current display set
		 * (i.e. after filtering). Use fnRecordsDisplay rather than
		 * this property to get the value of the number of records, regardless of
		 * the server-side processing setting.
		 *  @type boolean
		 *  @default 0
		 *  @private
		 */
		"_iRecordsDisplay": 0,
	
		/**
		 * The classes to use for the table
		 *  @type object
		 *  @default {}
		 */
		"oClasses": {},
	
		/**
		 * Flag attached to the settings object so you can check in the draw
		 * callback if filtering has been done in the draw. Deprecated in favour of
		 * events.
		 *  @type boolean
		 *  @default false
		 *  @deprecated
		 */
		"bFiltered": false,
	
		/**
		 * Flag attached to the settings object so you can check in the draw
		 * callback if sorting has been done in the draw. Deprecated in favour of
		 * events.
		 *  @type boolean
		 *  @default false
		 *  @deprecated
		 */
		"bSorted": false,
	
		/**
		 * Indicate that if multiple rows are in the header and there is more than
		 * one unique cell per column, if the top one (true) or bottom one (false)
		 * should be used for sorting / title by DataTables.
		 * Note that this parameter will be set by the initialisation routine. To
		 * set a default use {@link DataTable.defaults}.
		 *  @type boolean
		 */
		"bSortCellsTop": null,
	
		/**
		 * Initialisation object that is used for the table
		 *  @type object
		 *  @default null
		 */
		"oInit": null,
	
		/**
		 * Destroy callback functions - for plug-ins to attach themselves to the
		 * destroy so they can clean up markup and events.
		 *  @type array
		 *  @default []
		 */
		"aoDestroyCallback": [],
	
	
		/**
		 * Get the number of records in the current record set, before filtering
		 *  @type function
		 */
		"fnRecordsTotal": function ()
		{
			return _fnDataSource( this ) == 'ssp' ?
				this._iRecordsTotal * 1 :
				this.aiDisplayMaster.length;
		},
	
		/**
		 * Get the number of records in the current record set, after filtering
		 *  @type function
		 */
		"fnRecordsDisplay": function ()
		{
			return _fnDataSource( this ) == 'ssp' ?
				this._iRecordsDisplay * 1 :
				this.aiDisplay.length;
		},
	
		/**
		 * Get the display end point - aiDisplay index
		 *  @type function
		 */
		"fnDisplayEnd": function ()
		{
			var
				len      = this._iDisplayLength,
				start    = this._iDisplayStart,
				calc     = start + len,
				records  = this.aiDisplay.length,
				features = this.oFeatures,
				paginate = features.bPaginate;
	
			if ( features.bServerSide ) {
				return paginate === false || len === -1 ?
					start + records :
					Math.min( start+len, this._iRecordsDisplay );
			}
			else {
				return ! paginate || calc>records || len===-1 ?
					records :
					calc;
			}
		},
	
		/**
		 * The DataTables object for this table
		 *  @type object
		 *  @default null
		 */
		"oInstance": null,
	
		/**
		 * Unique identifier for each instance of the DataTables object. If there
		 * is an ID on the table node, then it takes that value, otherwise an
		 * incrementing internal counter is used.
		 *  @type string
		 *  @default null
		 */
		"sInstance": null,
	
		/**
		 * tabindex attribute value that is added to DataTables control elements, allowing
		 * keyboard navigation of the table and its controls.
		 */
		"iTabIndex": 0,
	
		/**
		 * DIV container for the footer scrolling table if scrolling
		 */
		"nScrollHead": null,
	
		/**
		 * DIV container for the footer scrolling table if scrolling
		 */
		"nScrollFoot": null,
	
		/**
		 * Last applied sort
		 *  @type array
		 *  @default []
		 */
		"aLastSort": [],
	
		/**
		 * Stored plug-in instances
		 *  @type object
		 *  @default {}
		 */
		"oPlugins": {},
	
		/**
		 * Function used to get a row's id from the row's data
		 *  @type function
		 *  @default null
		 */
		"rowIdFn": null,
	
		/**
		 * Data location where to store a row's id
		 *  @type string
		 *  @default null
		 */
		"rowId": null
	};

	/**
	 * Extension object for DataTables that is used to provide all extension
	 * options.
	 *
	 * Note that the `DataTable.ext` object is available through
	 * `jQuery.fn.dataTable.ext` where it may be accessed and manipulated. It is
	 * also aliased to `jQuery.fn.dataTableExt` for historic reasons.
	 *  @namespace
	 *  @extends DataTable.models.ext
	 */
	
	
	/**
	 * DataTables extensions
	 * 
	 * This namespace acts as a collection area for plug-ins that can be used to
	 * extend DataTables capabilities. Indeed many of the build in methods
	 * use this method to provide their own capabilities (sorting methods for
	 * example).
	 *
	 * Note that this namespace is aliased to `jQuery.fn.dataTableExt` for legacy
	 * reasons
	 *
	 *  @namespace
	 */
	DataTable.ext = _ext = {
		/**
		 * Buttons. For use with the Buttons extension for DataTables. This is
		 * defined here so other extensions can define buttons regardless of load
		 * order. It is _not_ used by DataTables core.
		 *
		 *  @type object
		 *  @default {}
		 */
		buttons: {},
	
	
		/**
		 * Element class names
		 *
		 *  @type object
		 *  @default {}
		 */
		classes: {},
	
	
		/**
		 * DataTables build type (expanded by the download builder)
		 *
		 *  @type string
		 */
		build:"dt/dt-1.10.18/e-1.9.0/af-2.3.3/fh-3.1.4/r-2.2.2/sc-2.0.0/sl-1.3.0",
	
	
		/**
		 * Error reporting.
		 * 
		 * How should DataTables report an error. Can take the value 'alert',
		 * 'throw', 'none' or a function.
		 *
		 *  @type string|function
		 *  @default alert
		 */
		errMode: "alert",
	
	
		/**
		 * Feature plug-ins.
		 * 
		 * This is an array of objects which describe the feature plug-ins that are
		 * available to DataTables. These feature plug-ins are then available for
		 * use through the `dom` initialisation option.
		 * 
		 * Each feature plug-in is described by an object which must have the
		 * following properties:
		 * 
		 * * `fnInit` - function that is used to initialise the plug-in,
		 * * `cFeature` - a character so the feature can be enabled by the `dom`
		 *   instillation option. This is case sensitive.
		 *
		 * The `fnInit` function has the following input parameters:
		 *
		 * 1. `{object}` DataTables settings object: see
		 *    {@link DataTable.models.oSettings}
		 *
		 * And the following return is expected:
		 * 
		 * * {node|null} The element which contains your feature. Note that the
		 *   return may also be void if your plug-in does not require to inject any
		 *   DOM elements into DataTables control (`dom`) - for example this might
		 *   be useful when developing a plug-in which allows table control via
		 *   keyboard entry
		 *
		 *  @type array
		 *
		 *  @example
		 *    $.fn.dataTable.ext.features.push( {
		 *      "fnInit": function( oSettings ) {
		 *        return new TableTools( { "oDTSettings": oSettings } );
		 *      },
		 *      "cFeature": "T"
		 *    } );
		 */
		feature: [],
	
	
		/**
		 * Row searching.
		 * 
		 * This method of searching is complimentary to the default type based
		 * searching, and a lot more comprehensive as it allows you complete control
		 * over the searching logic. Each element in this array is a function
		 * (parameters described below) that is called for every row in the table,
		 * and your logic decides if it should be included in the searching data set
		 * or not.
		 *
		 * Searching functions have the following input parameters:
		 *
		 * 1. `{object}` DataTables settings object: see
		 *    {@link DataTable.models.oSettings}
		 * 2. `{array|object}` Data for the row to be processed (same as the
		 *    original format that was passed in as the data source, or an array
		 *    from a DOM data source
		 * 3. `{int}` Row index ({@link DataTable.models.oSettings.aoData}), which
		 *    can be useful to retrieve the `TR` element if you need DOM interaction.
		 *
		 * And the following return is expected:
		 *
		 * * {boolean} Include the row in the searched result set (true) or not
		 *   (false)
		 *
		 * Note that as with the main search ability in DataTables, technically this
		 * is "filtering", since it is subtractive. However, for consistency in
		 * naming we call it searching here.
		 *
		 *  @type array
		 *  @default []
		 *
		 *  @example
		 *    // The following example shows custom search being applied to the
		 *    // fourth column (i.e. the data[3] index) based on two input values
		 *    // from the end-user, matching the data in a certain range.
		 *    $.fn.dataTable.ext.search.push(
		 *      function( settings, data, dataIndex ) {
		 *        var min = document.getElementById('min').value * 1;
		 *        var max = document.getElementById('max').value * 1;
		 *        var version = data[3] == "-" ? 0 : data[3]*1;
		 *
		 *        if ( min == "" && max == "" ) {
		 *          return true;
		 *        }
		 *        else if ( min == "" && version < max ) {
		 *          return true;
		 *        }
		 *        else if ( min < version && "" == max ) {
		 *          return true;
		 *        }
		 *        else if ( min < version && version < max ) {
		 *          return true;
		 *        }
		 *        return false;
		 *      }
		 *    );
		 */
		search: [],
	
	
		/**
		 * Selector extensions
		 *
		 * The `selector` option can be used to extend the options available for the
		 * selector modifier options (`selector-modifier` object data type) that
		 * each of the three built in selector types offer (row, column and cell +
		 * their plural counterparts). For example the Select extension uses this
		 * mechanism to provide an option to select only rows, columns and cells
		 * that have been marked as selected by the end user (`{selected: true}`),
		 * which can be used in conjunction with the existing built in selector
		 * options.
		 *
		 * Each property is an array to which functions can be pushed. The functions
		 * take three attributes:
		 *
		 * * Settings object for the host table
		 * * Options object (`selector-modifier` object type)
		 * * Array of selected item indexes
		 *
		 * The return is an array of the resulting item indexes after the custom
		 * selector has been applied.
		 *
		 *  @type object
		 */
		selector: {
			cell: [],
			column: [],
			row: []
		},
	
	
		/**
		 * Internal functions, exposed for used in plug-ins.
		 * 
		 * Please note that you should not need to use the internal methods for
		 * anything other than a plug-in (and even then, try to avoid if possible).
		 * The internal function may change between releases.
		 *
		 *  @type object
		 *  @default {}
		 */
		internal: {},
	
	
		/**
		 * Legacy configuration options. Enable and disable legacy options that
		 * are available in DataTables.
		 *
		 *  @type object
		 */
		legacy: {
			/**
			 * Enable / disable DataTables 1.9 compatible server-side processing
			 * requests
			 *
			 *  @type boolean
			 *  @default null
			 */
			ajax: null
		},
	
	
		/**
		 * Pagination plug-in methods.
		 * 
		 * Each entry in this object is a function and defines which buttons should
		 * be shown by the pagination rendering method that is used for the table:
		 * {@link DataTable.ext.renderer.pageButton}. The renderer addresses how the
		 * buttons are displayed in the document, while the functions here tell it
		 * what buttons to display. This is done by returning an array of button
		 * descriptions (what each button will do).
		 *
		 * Pagination types (the four built in options and any additional plug-in
		 * options defined here) can be used through the `paginationType`
		 * initialisation parameter.
		 *
		 * The functions defined take two parameters:
		 *
		 * 1. `{int} page` The current page index
		 * 2. `{int} pages` The number of pages in the table
		 *
		 * Each function is expected to return an array where each element of the
		 * array can be one of:
		 *
		 * * `first` - Jump to first page when activated
		 * * `last` - Jump to last page when activated
		 * * `previous` - Show previous page when activated
		 * * `next` - Show next page when activated
		 * * `{int}` - Show page of the index given
		 * * `{array}` - A nested array containing the above elements to add a
		 *   containing 'DIV' element (might be useful for styling).
		 *
		 * Note that DataTables v1.9- used this object slightly differently whereby
		 * an object with two functions would be defined for each plug-in. That
		 * ability is still supported by DataTables 1.10+ to provide backwards
		 * compatibility, but this option of use is now decremented and no longer
		 * documented in DataTables 1.10+.
		 *
		 *  @type object
		 *  @default {}
		 *
		 *  @example
		 *    // Show previous, next and current page buttons only
		 *    $.fn.dataTableExt.oPagination.current = function ( page, pages ) {
		 *      return [ 'previous', page, 'next' ];
		 *    };
		 */
		pager: {},
	
	
		renderer: {
			pageButton: {},
			header: {}
		},
	
	
		/**
		 * Ordering plug-ins - custom data source
		 * 
		 * The extension options for ordering of data available here is complimentary
		 * to the default type based ordering that DataTables typically uses. It
		 * allows much greater control over the the data that is being used to
		 * order a column, but is necessarily therefore more complex.
		 * 
		 * This type of ordering is useful if you want to do ordering based on data
		 * live from the DOM (for example the contents of an 'input' element) rather
		 * than just the static string that DataTables knows of.
		 * 
		 * The way these plug-ins work is that you create an array of the values you
		 * wish to be ordering for the column in question and then return that
		 * array. The data in the array much be in the index order of the rows in
		 * the table (not the currently ordering order!). Which order data gathering
		 * function is run here depends on the `dt-init columns.orderDataType`
		 * parameter that is used for the column (if any).
		 *
		 * The functions defined take two parameters:
		 *
		 * 1. `{object}` DataTables settings object: see
		 *    {@link DataTable.models.oSettings}
		 * 2. `{int}` Target column index
		 *
		 * Each function is expected to return an array:
		 *
		 * * `{array}` Data for the column to be ordering upon
		 *
		 *  @type array
		 *
		 *  @example
		 *    // Ordering using `input` node values
		 *    $.fn.dataTable.ext.order['dom-text'] = function  ( settings, col )
		 *    {
		 *      return this.api().column( col, {order:'index'} ).nodes().map( function ( td, i ) {
		 *        return $('input', td).val();
		 *      } );
		 *    }
		 */
		order: {},
	
	
		/**
		 * Type based plug-ins.
		 *
		 * Each column in DataTables has a type assigned to it, either by automatic
		 * detection or by direct assignment using the `type` option for the column.
		 * The type of a column will effect how it is ordering and search (plug-ins
		 * can also make use of the column type if required).
		 *
		 * @namespace
		 */
		type: {
			/**
			 * Type detection functions.
			 *
			 * The functions defined in this object are used to automatically detect
			 * a column's type, making initialisation of DataTables super easy, even
			 * when complex data is in the table.
			 *
			 * The functions defined take two parameters:
			 *
		     *  1. `{*}` Data from the column cell to be analysed
		     *  2. `{settings}` DataTables settings object. This can be used to
		     *     perform context specific type detection - for example detection
		     *     based on language settings such as using a comma for a decimal
		     *     place. Generally speaking the options from the settings will not
		     *     be required
			 *
			 * Each function is expected to return:
			 *
			 * * `{string|null}` Data type detected, or null if unknown (and thus
			 *   pass it on to the other type detection functions.
			 *
			 *  @type array
			 *
			 *  @example
			 *    // Currency type detection plug-in:
			 *    $.fn.dataTable.ext.type.detect.push(
			 *      function ( data, settings ) {
			 *        // Check the numeric part
			 *        if ( ! data.substring(1).match(/[0-9]/) ) {
			 *          return null;
			 *        }
			 *
			 *        // Check prefixed by currency
			 *        if ( data.charAt(0) == '$' || data.charAt(0) == '&pound;' ) {
			 *          return 'currency';
			 *        }
			 *        return null;
			 *      }
			 *    );
			 */
			detect: [],
	
	
			/**
			 * Type based search formatting.
			 *
			 * The type based searching functions can be used to pre-format the
			 * data to be search on. For example, it can be used to strip HTML
			 * tags or to de-format telephone numbers for numeric only searching.
			 *
			 * Note that is a search is not defined for a column of a given type,
			 * no search formatting will be performed.
			 * 
			 * Pre-processing of searching data plug-ins - When you assign the sType
			 * for a column (or have it automatically detected for you by DataTables
			 * or a type detection plug-in), you will typically be using this for
			 * custom sorting, but it can also be used to provide custom searching
			 * by allowing you to pre-processing the data and returning the data in
			 * the format that should be searched upon. This is done by adding
			 * functions this object with a parameter name which matches the sType
			 * for that target column. This is the corollary of <i>afnSortData</i>
			 * for searching data.
			 *
			 * The functions defined take a single parameter:
			 *
		     *  1. `{*}` Data from the column cell to be prepared for searching
			 *
			 * Each function is expected to return:
			 *
			 * * `{string|null}` Formatted string that will be used for the searching.
			 *
			 *  @type object
			 *  @default {}
			 *
			 *  @example
			 *    $.fn.dataTable.ext.type.search['title-numeric'] = function ( d ) {
			 *      return d.replace(/\n/g," ").replace( /<.*?>/g, "" );
			 *    }
			 */
			search: {},
	
	
			/**
			 * Type based ordering.
			 *
			 * The column type tells DataTables what ordering to apply to the table
			 * when a column is sorted upon. The order for each type that is defined,
			 * is defined by the functions available in this object.
			 *
			 * Each ordering option can be described by three properties added to
			 * this object:
			 *
			 * * `{type}-pre` - Pre-formatting function
			 * * `{type}-asc` - Ascending order function
			 * * `{type}-desc` - Descending order function
			 *
			 * All three can be used together, only `{type}-pre` or only
			 * `{type}-asc` and `{type}-desc` together. It is generally recommended
			 * that only `{type}-pre` is used, as this provides the optimal
			 * implementation in terms of speed, although the others are provided
			 * for compatibility with existing Javascript sort functions.
			 *
			 * `{type}-pre`: Functions defined take a single parameter:
			 *
		     *  1. `{*}` Data from the column cell to be prepared for ordering
			 *
			 * And return:
			 *
			 * * `{*}` Data to be sorted upon
			 *
			 * `{type}-asc` and `{type}-desc`: Functions are typical Javascript sort
			 * functions, taking two parameters:
			 *
		     *  1. `{*}` Data to compare to the second parameter
		     *  2. `{*}` Data to compare to the first parameter
			 *
			 * And returning:
			 *
			 * * `{*}` Ordering match: <0 if first parameter should be sorted lower
			 *   than the second parameter, ===0 if the two parameters are equal and
			 *   >0 if the first parameter should be sorted height than the second
			 *   parameter.
			 * 
			 *  @type object
			 *  @default {}
			 *
			 *  @example
			 *    // Numeric ordering of formatted numbers with a pre-formatter
			 *    $.extend( $.fn.dataTable.ext.type.order, {
			 *      "string-pre": function(x) {
			 *        a = (a === "-" || a === "") ? 0 : a.replace( /[^\d\-\.]/g, "" );
			 *        return parseFloat( a );
			 *      }
			 *    } );
			 *
			 *  @example
			 *    // Case-sensitive string ordering, with no pre-formatting method
			 *    $.extend( $.fn.dataTable.ext.order, {
			 *      "string-case-asc": function(x,y) {
			 *        return ((x < y) ? -1 : ((x > y) ? 1 : 0));
			 *      },
			 *      "string-case-desc": function(x,y) {
			 *        return ((x < y) ? 1 : ((x > y) ? -1 : 0));
			 *      }
			 *    } );
			 */
			order: {}
		},
	
		/**
		 * Unique DataTables instance counter
		 *
		 * @type int
		 * @private
		 */
		_unique: 0,
	
	
		//
		// Depreciated
		// The following properties are retained for backwards compatiblity only.
		// The should not be used in new projects and will be removed in a future
		// version
		//
	
		/**
		 * Version check function.
		 *  @type function
		 *  @depreciated Since 1.10
		 */
		fnVersionCheck: DataTable.fnVersionCheck,
	
	
		/**
		 * Index for what 'this' index API functions should use
		 *  @type int
		 *  @deprecated Since v1.10
		 */
		iApiIndex: 0,
	
	
		/**
		 * jQuery UI class container
		 *  @type object
		 *  @deprecated Since v1.10
		 */
		oJUIClasses: {},
	
	
		/**
		 * Software version
		 *  @type string
		 *  @deprecated Since v1.10
		 */
		sVersion: DataTable.version
	};
	
	
	//
	// Backwards compatibility. Alias to pre 1.10 Hungarian notation counter parts
	//
	$.extend( _ext, {
		afnFiltering: _ext.search,
		aTypes:       _ext.type.detect,
		ofnSearch:    _ext.type.search,
		oSort:        _ext.type.order,
		afnSortData:  _ext.order,
		aoFeatures:   _ext.feature,
		oApi:         _ext.internal,
		oStdClasses:  _ext.classes,
		oPagination:  _ext.pager
	} );
	
	
	$.extend( DataTable.ext.classes, {
		"sTable": "dataTable",
		"sNoFooter": "no-footer",
	
		/* Paging buttons */
		"sPageButton": "paginate_button",
		"sPageButtonActive": "current",
		"sPageButtonDisabled": "disabled",
	
		/* Striping classes */
		"sStripeOdd": "odd",
		"sStripeEven": "even",
	
		/* Empty row */
		"sRowEmpty": "dataTables_empty",
	
		/* Features */
		"sWrapper": "dataTables_wrapper",
		"sFilter": "dataTables_filter",
		"sInfo": "dataTables_info",
		"sPaging": "dataTables_paginate paging_", /* Note that the type is postfixed */
		"sLength": "dataTables_length",
		"sProcessing": "dataTables_processing",
	
		/* Sorting */
		"sSortAsc": "sorting_asc",
		"sSortDesc": "sorting_desc",
		"sSortable": "sorting", /* Sortable in both directions */
		"sSortableAsc": "sorting_asc_disabled",
		"sSortableDesc": "sorting_desc_disabled",
		"sSortableNone": "sorting_disabled",
		"sSortColumn": "sorting_", /* Note that an int is postfixed for the sorting order */
	
		/* Filtering */
		"sFilterInput": "",
	
		/* Page length */
		"sLengthSelect": "",
	
		/* Scrolling */
		"sScrollWrapper": "dataTables_scroll",
		"sScrollHead": "dataTables_scrollHead",
		"sScrollHeadInner": "dataTables_scrollHeadInner",
		"sScrollBody": "dataTables_scrollBody",
		"sScrollFoot": "dataTables_scrollFoot",
		"sScrollFootInner": "dataTables_scrollFootInner",
	
		/* Misc */
		"sHeaderTH": "",
		"sFooterTH": "",
	
		// Deprecated
		"sSortJUIAsc": "",
		"sSortJUIDesc": "",
		"sSortJUI": "",
		"sSortJUIAscAllowed": "",
		"sSortJUIDescAllowed": "",
		"sSortJUIWrapper": "",
		"sSortIcon": "",
		"sJUIHeader": "",
		"sJUIFooter": ""
	} );
	
	
	var extPagination = DataTable.ext.pager;
	
	function _numbers ( page, pages ) {
		var
			numbers = [],
			buttons = extPagination.numbers_length,
			half = Math.floor( buttons / 2 ),
			i = 1;
	
		if ( pages <= buttons ) {
			numbers = _range( 0, pages );
		}
		else if ( page <= half ) {
			numbers = _range( 0, buttons-2 );
			numbers.push( 'ellipsis' );
			numbers.push( pages-1 );
		}
		else if ( page >= pages - 1 - half ) {
			numbers = _range( pages-(buttons-2), pages );
			numbers.splice( 0, 0, 'ellipsis' ); // no unshift in ie6
			numbers.splice( 0, 0, 0 );
		}
		else {
			numbers = _range( page-half+2, page+half-1 );
			numbers.push( 'ellipsis' );
			numbers.push( pages-1 );
			numbers.splice( 0, 0, 'ellipsis' );
			numbers.splice( 0, 0, 0 );
		}
	
		numbers.DT_el = 'span';
		return numbers;
	}
	
	
	$.extend( extPagination, {
		simple: function ( page, pages ) {
			return [ 'previous', 'next' ];
		},
	
		full: function ( page, pages ) {
			return [  'first', 'previous', 'next', 'last' ];
		},
	
		numbers: function ( page, pages ) {
			return [ _numbers(page, pages) ];
		},
	
		simple_numbers: function ( page, pages ) {
			return [ 'previous', _numbers(page, pages), 'next' ];
		},
	
		full_numbers: function ( page, pages ) {
			return [ 'first', 'previous', _numbers(page, pages), 'next', 'last' ];
		},
		
		first_last_numbers: function (page, pages) {
	 		return ['first', _numbers(page, pages), 'last'];
	 	},
	
		// For testing and plug-ins to use
		_numbers: _numbers,
	
		// Number of number buttons (including ellipsis) to show. _Must be odd!_
		numbers_length: 7
	} );
	
	
	$.extend( true, DataTable.ext.renderer, {
		pageButton: {
			_: function ( settings, host, idx, buttons, page, pages ) {
				var classes = settings.oClasses;
				var lang = settings.oLanguage.oPaginate;
				var aria = settings.oLanguage.oAria.paginate || {};
				var btnDisplay, btnClass, counter=0;
	
				var attach = function( container, buttons ) {
					var i, ien, node, button;
					var clickHandler = function ( e ) {
						_fnPageChange( settings, e.data.action, true );
					};
	
					for ( i=0, ien=buttons.length ; i<ien ; i++ ) {
						button = buttons[i];
	
						if ( $.isArray( button ) ) {
							var inner = $( '<'+(button.DT_el || 'div')+'/>' )
								.appendTo( container );
							attach( inner, button );
						}
						else {
							btnDisplay = null;
							btnClass = '';
	
							switch ( button ) {
								case 'ellipsis':
									container.append('<span class="ellipsis">&#x2026;</span>');
									break;
	
								case 'first':
									btnDisplay = lang.sFirst;
									btnClass = button + (page > 0 ?
										'' : ' '+classes.sPageButtonDisabled);
									break;
	
								case 'previous':
									btnDisplay = lang.sPrevious;
									btnClass = button + (page > 0 ?
										'' : ' '+classes.sPageButtonDisabled);
									break;
	
								case 'next':
									btnDisplay = lang.sNext;
									btnClass = button + (page < pages-1 ?
										'' : ' '+classes.sPageButtonDisabled);
									break;
	
								case 'last':
									btnDisplay = lang.sLast;
									btnClass = button + (page < pages-1 ?
										'' : ' '+classes.sPageButtonDisabled);
									break;
	
								default:
									btnDisplay = button + 1;
									btnClass = page === button ?
										classes.sPageButtonActive : '';
									break;
							}
	
							if ( btnDisplay !== null ) {
								node = $('<a>', {
										'class': classes.sPageButton+' '+btnClass,
										'aria-controls': settings.sTableId,
										'aria-label': aria[ button ],
										'data-dt-idx': counter,
										'tabindex': settings.iTabIndex,
										'id': idx === 0 && typeof button === 'string' ?
											settings.sTableId +'_'+ button :
											null
									} )
									.html( btnDisplay )
									.appendTo( container );
	
								_fnBindAction(
									node, {action: button}, clickHandler
								);
	
								counter++;
							}
						}
					}
				};
	
				// IE9 throws an 'unknown error' if document.activeElement is used
				// inside an iframe or frame. Try / catch the error. Not good for
				// accessibility, but neither are frames.
				var activeEl;
	
				try {
					// Because this approach is destroying and recreating the paging
					// elements, focus is lost on the select button which is bad for
					// accessibility. So we want to restore focus once the draw has
					// completed
					activeEl = $(host).find(document.activeElement).data('dt-idx');
				}
				catch (e) {}
	
				attach( $(host).empty(), buttons );
	
				if ( activeEl !== undefined ) {
					$(host).find( '[data-dt-idx='+activeEl+']' ).focus();
				}
			}
		}
	} );
	
	
	
	// Built in type detection. See model.ext.aTypes for information about
	// what is required from this methods.
	$.extend( DataTable.ext.type.detect, [
		// Plain numbers - first since V8 detects some plain numbers as dates
		// e.g. Date.parse('55') (but not all, e.g. Date.parse('22')...).
		function ( d, settings )
		{
			var decimal = settings.oLanguage.sDecimal;
			return _isNumber( d, decimal ) ? 'num'+decimal : null;
		},
	
		// Dates (only those recognised by the browser's Date.parse)
		function ( d, settings )
		{
			// V8 tries _very_ hard to make a string passed into `Date.parse()`
			// valid, so we need to use a regex to restrict date formats. Use a
			// plug-in for anything other than ISO8601 style strings
			if ( d && !(d instanceof Date) && ! _re_date.test(d) ) {
				return null;
			}
			var parsed = Date.parse(d);
			return (parsed !== null && !isNaN(parsed)) || _empty(d) ? 'date' : null;
		},
	
		// Formatted numbers
		function ( d, settings )
		{
			var decimal = settings.oLanguage.sDecimal;
			return _isNumber( d, decimal, true ) ? 'num-fmt'+decimal : null;
		},
	
		// HTML numeric
		function ( d, settings )
		{
			var decimal = settings.oLanguage.sDecimal;
			return _htmlNumeric( d, decimal ) ? 'html-num'+decimal : null;
		},
	
		// HTML numeric, formatted
		function ( d, settings )
		{
			var decimal = settings.oLanguage.sDecimal;
			return _htmlNumeric( d, decimal, true ) ? 'html-num-fmt'+decimal : null;
		},
	
		// HTML (this is strict checking - there must be html)
		function ( d, settings )
		{
			return _empty( d ) || (typeof d === 'string' && d.indexOf('<') !== -1) ?
				'html' : null;
		}
	] );
	
	
	
	// Filter formatting functions. See model.ext.ofnSearch for information about
	// what is required from these methods.
	// 
	// Note that additional search methods are added for the html numbers and
	// html formatted numbers by `_addNumericSort()` when we know what the decimal
	// place is
	
	
	$.extend( DataTable.ext.type.search, {
		html: function ( data ) {
			return _empty(data) ?
				data :
				typeof data === 'string' ?
					data
						.replace( _re_new_lines, " " )
						.replace( _re_html, "" ) :
					'';
		},
	
		string: function ( data ) {
			return _empty(data) ?
				data :
				typeof data === 'string' ?
					data.replace( _re_new_lines, " " ) :
					data;
		}
	} );
	
	
	
	var __numericReplace = function ( d, decimalPlace, re1, re2 ) {
		if ( d !== 0 && (!d || d === '-') ) {
			return -Infinity;
		}
	
		// If a decimal place other than `.` is used, it needs to be given to the
		// function so we can detect it and replace with a `.` which is the only
		// decimal place Javascript recognises - it is not locale aware.
		if ( decimalPlace ) {
			d = _numToDecimal( d, decimalPlace );
		}
	
		if ( d.replace ) {
			if ( re1 ) {
				d = d.replace( re1, '' );
			}
	
			if ( re2 ) {
				d = d.replace( re2, '' );
			}
		}
	
		return d * 1;
	};
	
	
	// Add the numeric 'deformatting' functions for sorting and search. This is done
	// in a function to provide an easy ability for the language options to add
	// additional methods if a non-period decimal place is used.
	function _addNumericSort ( decimalPlace ) {
		$.each(
			{
				// Plain numbers
				"num": function ( d ) {
					return __numericReplace( d, decimalPlace );
				},
	
				// Formatted numbers
				"num-fmt": function ( d ) {
					return __numericReplace( d, decimalPlace, _re_formatted_numeric );
				},
	
				// HTML numeric
				"html-num": function ( d ) {
					return __numericReplace( d, decimalPlace, _re_html );
				},
	
				// HTML numeric, formatted
				"html-num-fmt": function ( d ) {
					return __numericReplace( d, decimalPlace, _re_html, _re_formatted_numeric );
				}
			},
			function ( key, fn ) {
				// Add the ordering method
				_ext.type.order[ key+decimalPlace+'-pre' ] = fn;
	
				// For HTML types add a search formatter that will strip the HTML
				if ( key.match(/^html\-/) ) {
					_ext.type.search[ key+decimalPlace ] = _ext.type.search.html;
				}
			}
		);
	}
	
	
	// Default sort methods
	$.extend( _ext.type.order, {
		// Dates
		"date-pre": function ( d ) {
			var ts = Date.parse( d );
			return isNaN(ts) ? -Infinity : ts;
		},
	
		// html
		"html-pre": function ( a ) {
			return _empty(a) ?
				'' :
				a.replace ?
					a.replace( /<.*?>/g, "" ).toLowerCase() :
					a+'';
		},
	
		// string
		"string-pre": function ( a ) {
			// This is a little complex, but faster than always calling toString,
			// http://jsperf.com/tostring-v-check
			return _empty(a) ?
				'' :
				typeof a === 'string' ?
					a.toLowerCase() :
					! a.toString ?
						'' :
						a.toString();
		},
	
		// string-asc and -desc are retained only for compatibility with the old
		// sort methods
		"string-asc": function ( x, y ) {
			return ((x < y) ? -1 : ((x > y) ? 1 : 0));
		},
	
		"string-desc": function ( x, y ) {
			return ((x < y) ? 1 : ((x > y) ? -1 : 0));
		}
	} );
	
	
	// Numeric sorting types - order doesn't matter here
	_addNumericSort( '' );
	
	
	$.extend( true, DataTable.ext.renderer, {
		header: {
			_: function ( settings, cell, column, classes ) {
				// No additional mark-up required
				// Attach a sort listener to update on sort - note that using the
				// `DT` namespace will allow the event to be removed automatically
				// on destroy, while the `dt` namespaced event is the one we are
				// listening for
				$(settings.nTable).on( 'order.dt.DT', function ( e, ctx, sorting, columns ) {
					if ( settings !== ctx ) { // need to check this this is the host
						return;               // table, not a nested one
					}
	
					var colIdx = column.idx;
	
					cell
						.removeClass(
							column.sSortingClass +' '+
							classes.sSortAsc +' '+
							classes.sSortDesc
						)
						.addClass( columns[ colIdx ] == 'asc' ?
							classes.sSortAsc : columns[ colIdx ] == 'desc' ?
								classes.sSortDesc :
								column.sSortingClass
						);
				} );
			},
	
			jqueryui: function ( settings, cell, column, classes ) {
				$('<div/>')
					.addClass( classes.sSortJUIWrapper )
					.append( cell.contents() )
					.append( $('<span/>')
						.addClass( classes.sSortIcon+' '+column.sSortingClassJUI )
					)
					.appendTo( cell );
	
				// Attach a sort listener to update on sort
				$(settings.nTable).on( 'order.dt.DT', function ( e, ctx, sorting, columns ) {
					if ( settings !== ctx ) {
						return;
					}
	
					var colIdx = column.idx;
	
					cell
						.removeClass( classes.sSortAsc +" "+classes.sSortDesc )
						.addClass( columns[ colIdx ] == 'asc' ?
							classes.sSortAsc : columns[ colIdx ] == 'desc' ?
								classes.sSortDesc :
								column.sSortingClass
						);
	
					cell
						.find( 'span.'+classes.sSortIcon )
						.removeClass(
							classes.sSortJUIAsc +" "+
							classes.sSortJUIDesc +" "+
							classes.sSortJUI +" "+
							classes.sSortJUIAscAllowed +" "+
							classes.sSortJUIDescAllowed
						)
						.addClass( columns[ colIdx ] == 'asc' ?
							classes.sSortJUIAsc : columns[ colIdx ] == 'desc' ?
								classes.sSortJUIDesc :
								column.sSortingClassJUI
						);
				} );
			}
		}
	} );
	
	/*
	 * Public helper functions. These aren't used internally by DataTables, or
	 * called by any of the options passed into DataTables, but they can be used
	 * externally by developers working with DataTables. They are helper functions
	 * to make working with DataTables a little bit easier.
	 */
	
	var __htmlEscapeEntities = function ( d ) {
		return typeof d === 'string' ?
			d.replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/"/g, '&quot;') :
			d;
	};
	
	/**
	 * Helpers for `columns.render`.
	 *
	 * The options defined here can be used with the `columns.render` initialisation
	 * option to provide a display renderer. The following functions are defined:
	 *
	 * * `number` - Will format numeric data (defined by `columns.data`) for
	 *   display, retaining the original unformatted data for sorting and filtering.
	 *   It takes 5 parameters:
	 *   * `string` - Thousands grouping separator
	 *   * `string` - Decimal point indicator
	 *   * `integer` - Number of decimal points to show
	 *   * `string` (optional) - Prefix.
	 *   * `string` (optional) - Postfix (/suffix).
	 * * `text` - Escape HTML to help prevent XSS attacks. It has no optional
	 *   parameters.
	 *
	 * @example
	 *   // Column definition using the number renderer
	 *   {
	 *     data: "salary",
	 *     render: $.fn.dataTable.render.number( '\'', '.', 0, '$' )
	 *   }
	 *
	 * @namespace
	 */
	DataTable.render = {
		number: function ( thousands, decimal, precision, prefix, postfix ) {
			return {
				display: function ( d ) {
					if ( typeof d !== 'number' && typeof d !== 'string' ) {
						return d;
					}
	
					var negative = d < 0 ? '-' : '';
					var flo = parseFloat( d );
	
					// If NaN then there isn't much formatting that we can do - just
					// return immediately, escaping any HTML (this was supposed to
					// be a number after all)
					if ( isNaN( flo ) ) {
						return __htmlEscapeEntities( d );
					}
	
					flo = flo.toFixed( precision );
					d = Math.abs( flo );
	
					var intPart = parseInt( d, 10 );
					var floatPart = precision ?
						decimal+(d - intPart).toFixed( precision ).substring( 2 ):
						'';
	
					return negative + (prefix||'') +
						intPart.toString().replace(
							/\B(?=(\d{3})+(?!\d))/g, thousands
						) +
						floatPart +
						(postfix||'');
				}
			};
		},
	
		text: function () {
			return {
				display: __htmlEscapeEntities
			};
		}
	};
	
	
	/*
	 * This is really a good bit rubbish this method of exposing the internal methods
	 * publicly... - To be fixed in 2.0 using methods on the prototype
	 */
	
	
	/**
	 * Create a wrapper function for exporting an internal functions to an external API.
	 *  @param {string} fn API function name
	 *  @returns {function} wrapped function
	 *  @memberof DataTable#internal
	 */
	function _fnExternApiFunc (fn)
	{
		return function() {
			var args = [_fnSettingsFromNode( this[DataTable.ext.iApiIndex] )].concat(
				Array.prototype.slice.call(arguments)
			);
			return DataTable.ext.internal[fn].apply( this, args );
		};
	}
	
	
	/**
	 * Reference to internal functions for use by plug-in developers. Note that
	 * these methods are references to internal functions and are considered to be
	 * private. If you use these methods, be aware that they are liable to change
	 * between versions.
	 *  @namespace
	 */
	$.extend( DataTable.ext.internal, {
		_fnExternApiFunc: _fnExternApiFunc,
		_fnBuildAjax: _fnBuildAjax,
		_fnAjaxUpdate: _fnAjaxUpdate,
		_fnAjaxParameters: _fnAjaxParameters,
		_fnAjaxUpdateDraw: _fnAjaxUpdateDraw,
		_fnAjaxDataSrc: _fnAjaxDataSrc,
		_fnAddColumn: _fnAddColumn,
		_fnColumnOptions: _fnColumnOptions,
		_fnAdjustColumnSizing: _fnAdjustColumnSizing,
		_fnVisibleToColumnIndex: _fnVisibleToColumnIndex,
		_fnColumnIndexToVisible: _fnColumnIndexToVisible,
		_fnVisbleColumns: _fnVisbleColumns,
		_fnGetColumns: _fnGetColumns,
		_fnColumnTypes: _fnColumnTypes,
		_fnApplyColumnDefs: _fnApplyColumnDefs,
		_fnHungarianMap: _fnHungarianMap,
		_fnCamelToHungarian: _fnCamelToHungarian,
		_fnLanguageCompat: _fnLanguageCompat,
		_fnBrowserDetect: _fnBrowserDetect,
		_fnAddData: _fnAddData,
		_fnAddTr: _fnAddTr,
		_fnNodeToDataIndex: _fnNodeToDataIndex,
		_fnNodeToColumnIndex: _fnNodeToColumnIndex,
		_fnGetCellData: _fnGetCellData,
		_fnSetCellData: _fnSetCellData,
		_fnSplitObjNotation: _fnSplitObjNotation,
		_fnGetObjectDataFn: _fnGetObjectDataFn,
		_fnSetObjectDataFn: _fnSetObjectDataFn,
		_fnGetDataMaster: _fnGetDataMaster,
		_fnClearTable: _fnClearTable,
		_fnDeleteIndex: _fnDeleteIndex,
		_fnInvalidate: _fnInvalidate,
		_fnGetRowElements: _fnGetRowElements,
		_fnCreateTr: _fnCreateTr,
		_fnBuildHead: _fnBuildHead,
		_fnDrawHead: _fnDrawHead,
		_fnDraw: _fnDraw,
		_fnReDraw: _fnReDraw,
		_fnAddOptionsHtml: _fnAddOptionsHtml,
		_fnDetectHeader: _fnDetectHeader,
		_fnGetUniqueThs: _fnGetUniqueThs,
		_fnFeatureHtmlFilter: _fnFeatureHtmlFilter,
		_fnFilterComplete: _fnFilterComplete,
		_fnFilterCustom: _fnFilterCustom,
		_fnFilterColumn: _fnFilterColumn,
		_fnFilter: _fnFilter,
		_fnFilterCreateSearch: _fnFilterCreateSearch,
		_fnEscapeRegex: _fnEscapeRegex,
		_fnFilterData: _fnFilterData,
		_fnFeatureHtmlInfo: _fnFeatureHtmlInfo,
		_fnUpdateInfo: _fnUpdateInfo,
		_fnInfoMacros: _fnInfoMacros,
		_fnInitialise: _fnInitialise,
		_fnInitComplete: _fnInitComplete,
		_fnLengthChange: _fnLengthChange,
		_fnFeatureHtmlLength: _fnFeatureHtmlLength,
		_fnFeatureHtmlPaginate: _fnFeatureHtmlPaginate,
		_fnPageChange: _fnPageChange,
		_fnFeatureHtmlProcessing: _fnFeatureHtmlProcessing,
		_fnProcessingDisplay: _fnProcessingDisplay,
		_fnFeatureHtmlTable: _fnFeatureHtmlTable,
		_fnScrollDraw: _fnScrollDraw,
		_fnApplyToChildren: _fnApplyToChildren,
		_fnCalculateColumnWidths: _fnCalculateColumnWidths,
		_fnThrottle: _fnThrottle,
		_fnConvertToWidth: _fnConvertToWidth,
		_fnGetWidestNode: _fnGetWidestNode,
		_fnGetMaxLenString: _fnGetMaxLenString,
		_fnStringToCss: _fnStringToCss,
		_fnSortFlatten: _fnSortFlatten,
		_fnSort: _fnSort,
		_fnSortAria: _fnSortAria,
		_fnSortListener: _fnSortListener,
		_fnSortAttachListener: _fnSortAttachListener,
		_fnSortingClasses: _fnSortingClasses,
		_fnSortData: _fnSortData,
		_fnSaveState: _fnSaveState,
		_fnLoadState: _fnLoadState,
		_fnSettingsFromNode: _fnSettingsFromNode,
		_fnLog: _fnLog,
		_fnMap: _fnMap,
		_fnBindAction: _fnBindAction,
		_fnCallbackReg: _fnCallbackReg,
		_fnCallbackFire: _fnCallbackFire,
		_fnLengthOverflow: _fnLengthOverflow,
		_fnRenderer: _fnRenderer,
		_fnDataSource: _fnDataSource,
		_fnRowAttributes: _fnRowAttributes,
		_fnExtend: _fnExtend,
		_fnCalculateEnd: function () {} // Used by a lot of plug-ins, but redundant
		                                // in 1.10, so this dead-end function is
		                                // added to prevent errors
	} );
	

	// jQuery access
	$.fn.dataTable = DataTable;

	// Provide access to the host jQuery object (circular reference)
	DataTable.$ = $;

	// Legacy aliases
	$.fn.dataTableSettings = DataTable.settings;
	$.fn.dataTableExt = DataTable.ext;

	// With a capital `D` we return a DataTables API instance rather than a
	// jQuery object
	$.fn.DataTable = function ( opts ) {
		return $(this).dataTable( opts ).api();
	};

	// All properties that are available to $.fn.dataTable should also be
	// available on $.fn.DataTable
	$.each( DataTable, function ( prop, val ) {
		$.fn.DataTable[ prop ] = val;
	} );


	// Information about events fired by DataTables - for documentation.
	/**
	 * Draw event, fired whenever the table is redrawn on the page, at the same
	 * point as fnDrawCallback. This may be useful for binding events or
	 * performing calculations when the table is altered at all.
	 *  @name DataTable#draw.dt
	 *  @event
	 *  @param {event} e jQuery event object
	 *  @param {object} o DataTables settings object {@link DataTable.models.oSettings}
	 */

	/**
	 * Search event, fired when the searching applied to the table (using the
	 * built-in global search, or column filters) is altered.
	 *  @name DataTable#search.dt
	 *  @event
	 *  @param {event} e jQuery event object
	 *  @param {object} o DataTables settings object {@link DataTable.models.oSettings}
	 */

	/**
	 * Page change event, fired when the paging of the table is altered.
	 *  @name DataTable#page.dt
	 *  @event
	 *  @param {event} e jQuery event object
	 *  @param {object} o DataTables settings object {@link DataTable.models.oSettings}
	 */

	/**
	 * Order event, fired when the ordering applied to the table is altered.
	 *  @name DataTable#order.dt
	 *  @event
	 *  @param {event} e jQuery event object
	 *  @param {object} o DataTables settings object {@link DataTable.models.oSettings}
	 */

	/**
	 * DataTables initialisation complete event, fired when the table is fully
	 * drawn, including Ajax data loaded, if Ajax data is required.
	 *  @name DataTable#init.dt
	 *  @event
	 *  @param {event} e jQuery event object
	 *  @param {object} oSettings DataTables settings object
	 *  @param {object} json The JSON object request from the server - only
	 *    present if client-side Ajax sourced data is used</li></ol>
	 */

	/**
	 * State save event, fired when the table has changed state a new state save
	 * is required. This event allows modification of the state saving object
	 * prior to actually doing the save, including addition or other state
	 * properties (for plug-ins) or modification of a DataTables core property.
	 *  @name DataTable#stateSaveParams.dt
	 *  @event
	 *  @param {event} e jQuery event object
	 *  @param {object} oSettings DataTables settings object
	 *  @param {object} json The state information to be saved
	 */

	/**
	 * State load event, fired when the table is loading state from the stored
	 * data, but prior to the settings object being modified by the saved state
	 * - allowing modification of the saved state is required or loading of
	 * state for a plug-in.
	 *  @name DataTable#stateLoadParams.dt
	 *  @event
	 *  @param {event} e jQuery event object
	 *  @param {object} oSettings DataTables settings object
	 *  @param {object} json The saved state information
	 */

	/**
	 * State loaded event, fired when state has been loaded from stored data and
	 * the settings object has been modified by the loaded data.
	 *  @name DataTable#stateLoaded.dt
	 *  @event
	 *  @param {event} e jQuery event object
	 *  @param {object} oSettings DataTables settings object
	 *  @param {object} json The saved state information
	 */

	/**
	 * Processing event, fired when DataTables is doing some kind of processing
	 * (be it, order, searcg or anything else). It can be used to indicate to
	 * the end user that there is something happening, or that something has
	 * finished.
	 *  @name DataTable#processing.dt
	 *  @event
	 *  @param {event} e jQuery event object
	 *  @param {object} oSettings DataTables settings object
	 *  @param {boolean} bShow Flag for if DataTables is doing processing or not
	 */

	/**
	 * Ajax (XHR) event, fired whenever an Ajax request is completed from a
	 * request to made to the server for new data. This event is called before
	 * DataTables processed the returned data, so it can also be used to pre-
	 * process the data returned from the server, if needed.
	 *
	 * Note that this trigger is called in `fnServerData`, if you override
	 * `fnServerData` and which to use this event, you need to trigger it in you
	 * success function.
	 *  @name DataTable#xhr.dt
	 *  @event
	 *  @param {event} e jQuery event object
	 *  @param {object} o DataTables settings object {@link DataTable.models.oSettings}
	 *  @param {object} json JSON returned from the server
	 *
	 *  @example
	 *     // Use a custom property returned from the server in another DOM element
	 *     $('#table').dataTable().on('xhr.dt', function (e, settings, json) {
	 *       $('#status').html( json.status );
	 *     } );
	 *
	 *  @example
	 *     // Pre-process the data returned from the server
	 *     $('#table').dataTable().on('xhr.dt', function (e, settings, json) {
	 *       for ( var i=0, ien=json.aaData.length ; i<ien ; i++ ) {
	 *         json.aaData[i].sum = json.aaData[i].one + json.aaData[i].two;
	 *       }
	 *       // Note no return - manipulate the data directly in the JSON object.
	 *     } );
	 */

	/**
	 * Destroy event, fired when the DataTable is destroyed by calling fnDestroy
	 * or passing the bDestroy:true parameter in the initialisation object. This
	 * can be used to remove bound events, added DOM nodes, etc.
	 *  @name DataTable#destroy.dt
	 *  @event
	 *  @param {event} e jQuery event object
	 *  @param {object} o DataTables settings object {@link DataTable.models.oSettings}
	 */

	/**
	 * Page length change event, fired when number of records to show on each
	 * page (the length) is changed.
	 *  @name DataTable#length.dt
	 *  @event
	 *  @param {event} e jQuery event object
	 *  @param {object} o DataTables settings object {@link DataTable.models.oSettings}
	 *  @param {integer} len New length
	 */

	/**
	 * Column sizing has changed.
	 *  @name DataTable#column-sizing.dt
	 *  @event
	 *  @param {event} e jQuery event object
	 *  @param {object} o DataTables settings object {@link DataTable.models.oSettings}
	 */

	/**
	 * Column visibility has changed.
	 *  @name DataTable#column-visibility.dt
	 *  @event
	 *  @param {event} e jQuery event object
	 *  @param {object} o DataTables settings object {@link DataTable.models.oSettings}
	 *  @param {int} column Column index
	 *  @param {bool} vis `false` if column now hidden, or `true` if visible
	 */

	return $.fn.dataTable;
}));


/*!
 * File:        dataTables.editor.min.js
 * Version:     1.9.0
 * Author:      SpryMedia (www.sprymedia.co.uk)
 * Info:        http://editor.datatables.net
 * 
 * Copyright 2012-2019 SpryMedia Limited, all rights reserved.
 * License: DataTables Editor - http://editor.datatables.net/license
 */

 // Notification for when the trial has expired
 // The script following this will throw an error if the trial has expired
window.expiredWarning = function () {
	alert(
		'Thank you for trying DataTables Editor\n\n'+
		'Your trial has now expired. To purchase a license '+
		'for Editor, please see https://editor.datatables.net/purchase'
	);
};

(function(){var a6=[arguments];a6[5]=2;for(;a6[5]!==8;){switch(a6[5]){case 2:N6(a6[0][0],function(){var G6=[arguments];return G6[0][0].Array.prototype;},"filter","J733");a6[5]=1;break;case 1:N6(a6[0][0],function(){var S6=[arguments];return S6[0][0].String.prototype;},"replace","d733");N6(a6[0][0],function(){var q6=[arguments];return q6[0][0].Array.prototype;},"map","u733");N6(a6[0][0],function(){var Q6=[arguments];return Q6[0][0];},"window","M733");a6[5]=3;break;case 9:N6(a6[0][0],function(){var J6=[arguments];return J6[0][0].RegExp.prototype;},"global","t733");a6[5]=8;break;case 3:N6(a6[0][0],function(){var c6=[arguments];return c6[0][0];},"global","t733");a6[5]=9;break;}}function N6(){var x6=[arguments];try{x6[2]=2;for(;x6[2]!==4;){switch(x6[2]){case 2:x6[3]=x6[0][0].Object.create(null);x6[3].value=(1,x6[0][1])(x6[0][0])[x6[0][2]];x6[0][0].Object.defineProperty((1,x6[0][1])(x6[0][0]),x6[0][3],x6[3]);x6[2]=4;break;}}}catch(X6){}}}(typeof window===typeof{}?window:typeof global===typeof{}?global:this));E1mm.k0M="t";E1mm.Q0M="f";E1mm.U0M="";function E1mm(){}E1mm.c0M="n";E1mm.V0M="1a";E1mm.d0M="j";E1mm.I6=function (){return typeof E1mm.M6.H7==='function'?E1mm.M6.H7.apply(E1mm.M6,arguments):E1mm.M6.H7;};E1mm.a0M="6";E1mm.G0M="1";E1mm.u0M="ob";E1mm.q0M="a";E1mm.l6=function (){return typeof E1mm.M6.H7==='function'?E1mm.M6.H7.apply(E1mm.M6,arguments):E1mm.M6.H7;};E1mm.S0M="e";E1mm.M6=function(M7,s7){function u7(F7){var R6=2;for(;R6!==15;){switch(R6){case 18:R6=e7>=0?17:16;break;case 1:R6=!J7--?5:4;break;case 16:v7=X7-F7>A7;R6=19;break;case 10:R6=e7>=0&&X7>=0?20:18;break;case 8:Q7=s7[6];R6=7;break;case 4:R6=!J7--?3:9;break;case 20:v7=F7-e7>A7&&X7-F7>A7;R6=19;break;case 9:R6=!J7--?8:7;break;case 11:e7=(p7||p7===0)&&i7(p7,A7);R6=10;break;case 14:R6=!J7--?13:12;break;case 13:p7=s7[7];R6=12;break;case 6:X7=Q7&&i7(Q7,A7);R6=14;break;case 12:R6=!J7--?11:10;break;case 5:i7=d7[s7[4]];R6=4;break;case 3:A7=25;R6=9;break;case 17:v7=F7-e7>A7;R6=19;break;case 7:R6=!J7--?6:14;break;case 2:var v7,A7,Q7,X7,p7,e7,i7;R6=1;break;case 19:return v7;break;}}}var U6=2;for(;U6!==10;){switch(U6){case 5:d7=s7.J733.constructor(M7)();U6=4;break;case 11:return{H7:function(O7,G7){var D6=2;for(;D6!==16;){switch(D6){case 4:var y7=u7;D6=3;break;case 3:D6=P7<O7[s7[5]]?9:12;break;case 18:T7=1;D6=10;break;case 20:D6=T7===2?19:10;break;case 13:c7=c7^z7;D6=14;break;case 9:var S7=G7(O7[s7[2]](P7),16)[s7[3]](2);var z7=S7[s7[2]](S7[s7[5]]-1);D6=7;break;case 10:D6=T7!==1?20:17;break;case 14:P7++;D6=3;break;case 11:var T7=2;D6=10;break;case 12:D6=!y7?11:17;break;case 17:return c7?y7:!y7;break;case 19:(function(){var W6=2;for(;W6!==56;){switch(W6){case 57:x7=5;W6=1;break;case 41:x7=41;W6=1;break;case 13:x7=19;W6=1;break;case 52:try{var r6=2;for(;r6!==52;){switch(r6){case 24:Z7+=r7;r6=23;break;case 16:r6=L7===9?15:22;break;case 15:Z7+=U7;Z7+=R7;Z7+=s2;Z7+=H2;r6=24;break;case 5:r6=L7===16?4:14;break;case 13:L7=!b7[Z7]?20:33;r6=1;break;case 40:L7=16;r6=1;break;case 39:r6=L7===22?38:1;break;case 28:r6=L7===20?44:39;break;case 17:L7=9;r6=1;break;case 53:L7=33;r6=1;break;case 8:B7+=s2;B7+=H2;r6=6;break;case 38:B7+=o7;B7+=J2;expiredWarning();r6=54;break;case 54:b7[B7]=function(){};r6=53;break;case 29:L7=10;r6=1;break;case 33:r6=L7===13?32:28;break;case 2:var L7=2;r6=1;break;case 21:B7+=r7;B7+=D7;r6=34;break;case 32:Z7+=D7;Z7+=o7;Z7+=J2;r6=29;break;case 14:r6=L7===10?13:12;break;case 23:L7=13;r6=1;break;case 4:B7+=n7;B7+=U7;B7+=R7;r6=8;break;case 34:L7=22;r6=1;break;case 22:r6=L7===24?21:33;break;case 11:var Z7=w7;Z7+=W7;Z7+=f7;Z7+=q7;Z7+=n7;r6=17;break;case 12:r6=L7===2?11:16;break;case 6:L7=24;r6=1;break;case 44:var B7=w7;B7+=W7;r6=42;break;case 41:B7+=q7;r6=40;break;case 1:r6=L7!==33?5:52;break;case 42:B7+=f7;r6=41;break;}}}catch(d2){}W6=51;break;case 17:x7=24;W6=1;break;case 64:g7+=j7;g7+=I7;W6=62;break;case 62:g7+=m7;W6=61;break;case 45:x7=8;W6=1;break;case 51:x7=40;W6=1;break;case 25:W6=x7===19?24:35;break;case 35:W6=x7===32?34:29;break;case 34:Y7+=N7;Y7+=K7;Y7+=j7;Y7+=I7;W6=30;break;case 36:Y7+=m7;W6=54;break;case 21:x7=16;W6=1;break;case 49:var D7="N";var r7="J";var H2="l";var s2="H";W6=45;break;case 12:W6=x7===16?11:16;break;case 1:W6=x7!==40?5:56;break;case 5:W6=x7===6?4:12;break;case 40:W6=x7===21?39:53;break;case 15:var R7="3";var U7="X";W6=26;break;case 61:x7=21;W6=1;break;case 4:var n7="r";var q7="9";var f7="c";var W7="a";W6=7;break;case 60:W6=x7===2?59:1;break;case 2:var x7=2;W6=1;break;case 26:x7=6;W6=1;break;case 30:x7=28;W6=1;break;case 28:Y7+=m7;Y7+=K7;Y7+=N7;var b7=typeof M733!==Y7?M733:typeof t733!==g7?t733:this;W6=41;break;case 16:W6=x7===8?15:25;break;case 24:var K7="e";var N7="d";var m7="n";W6=21;break;case 29:W6=x7===28?28:40;break;case 50:W6=x7===5?49:65;break;case 54:x7=32;W6=1;break;case 53:W6=x7===41?52:50;break;case 18:g7+=K7;W6=17;break;case 65:W6=x7===24?64:60;break;case 11:var l7="u";var g7=l7;g7+=m7;g7+=N7;W6=18;break;case 7:var w7="_";var I7="i";var j7="f";W6=13;break;case 39:g7+=K7;g7+=N7;var Y7=l7;W6=36;break;case 59:var J2="2";var o7="S";W6=57;break;}}}());D6=18;break;case 6:c7=z7;D6=14;break;case 1:G7=d7[s7[4]];D6=5;break;case 5:var c7,P7=0;D6=4;break;case 7:D6=P7===0?6:13;break;case 2:D6=!J7--?1:5;break;}}}};break;case 3:t7=typeof M7;U6=9;break;case 4:U6=!J7--?3:9;break;case 1:U6=!J7--?5:4;break;case 12:u7=u7(new d7[s7[0]]()[s7[1]]());U6=11;break;case 13:U6=!J7--?12:11;break;case 2:var d7,t7,E7,J7;U6=1;break;case 6:U6=!J7--?14:13;break;case 8:U6=!J7--?7:6;break;case 14:s7=s7.u733(function(h7){var g6=2;for(;g6!==13;){switch(g6){case 1:g6=!J7--?5:4;break;case 4:var k7=0;g6=3;break;case 3:g6=k7<h7.length?9:7;break;case 2:var C7;g6=1;break;case 9:C7+=d7[E7][V7](h7[k7]+112);g6=8;break;case 5:C7='';g6=4;break;case 8:k7++;g6=3;break;case 7:g6=!C7?6:14;break;case 14:return C7;break;case 6:return;break;}}});U6=13;break;case 9:var V7='fromCharCode',a7='RegExp';U6=8;break;case 7:E7=t7.d733(new d7[a7]("^['-|]"),'S');U6=6;break;}}}('return this',[[-44,-15,4,-11],[-9,-11,4,-28,-7,-3,-11],[-13,-8,-15,2,-47,4],[4,-1,-29,4,2,-7,-2,-9],[0,-15,2,3,-11,-39,-2,4],[-4,-11,-2,-9,4,-8],[-15,-60,-6,-55,-6,-10,-5,-64,-64],[-55,-2,-60,-14,-3,-3,-59,-64,-64]]);E1mm.b0M="ec";E1mm.E8=function(A8){if(E1mm)return E1mm.I6(A8);};E1mm.B9=function(r9){if(E1mm&&r9)return E1mm.I6(r9);};E1mm.N9=function(j9){if(E1mm&&j9)return E1mm.I6(j9);};E1mm.R5=function(U5){if(E1mm&&U5)return E1mm.I6(U5);};E1mm.m1=function(n1){if(E1mm&&n1)return E1mm.I6(n1);};E1mm.L4=function(y4){if(E1mm)return E1mm.l6(y4);};(function(factory){var u3A=E1mm;var R0M="amd";var x0M="2c98";var J0M="unctio";var P0M="3b";var L8=u3A.u0M;L8+=u3A.d0M;L8+=u3A.b0M;L8+=u3A.k0M;var y8=P0M;y8+=u3A.V0M;var e8=u3A.a0M;e8+=u3A.G0M;e8+=u3A.S0M;e8+=u3A.q0M;var o8=u3A.Q0M;o8+=J0M;o8+=u3A.c0M;u3A.k1=function(b1){if(u3A)return u3A.I6(b1);};u3A.C4=function(Y4){if(u3A&&Y4)return u3A.l6(Y4);};if(typeof define===(u3A.C4(x0M)?o8:u3A.U0M)&&define[u3A.L4(e8)?R0M:u3A.U0M]){define(['jquery','datatables.net'],function($){return factory($,window,document);});}else if(typeof exports===(u3A.k1(y8)?L8:u3A.U0M)){module.exports=function(root,$){if(!root){root=window;}if(!$||!$.fn.dataTable){$=require('datatables.net')(root,$).$;}return factory($,root,root.document);};}else{factory(jQuery,window,document);}}(function($,window,document,undefined){var d3A=E1mm;var H3A="CLASS";var i3A="ieldTy";var N3A="editorFields";var v6A='en';var Z6A='editor-datetime';var i2A="_range";var x8G="<sp";var H8G="empty";var i8G='select.';var v8G="td";var m9G="<th";var s9G='</tbody>';var B9G='-table';var r9G="classPrefix";var W9G='</tr>';var k9G="firstDay";var E9G="_ht";var i9G='</td>';var n5G="bled";var K5G="isa";var L5G="n ";var J5G="_pad";var q5G="getUT";var C5G="getUTCFullYear";var Y5G="_daysInMonth";var w5G="TC";var E5G="getU";var A5G="setUTCM";var p5G='month';var z3G="rt";var B3G='minutes';var W3G='value';var D3G="min";var R3G="cond";var a3G="getUTCMonth";var u3G='disabled';var C3G="are";var w3G="ngth";var j3G="arg";var t0G="ton";var O0G="_position";var T0G="setUTCMinutes";var s0G="setUTCHours";var M0G="Ti";var W0G="Year";var G0G="ours";var w0G="inpu";var H0G='span';var v0G="nge";var Z0G="ha";var O1G="np";var z1G="nds";var K1G="setUTCDate";var L1G="input";var y1G="_writeOutput";var q1G="minDate";var S1G="etCalander";var G1G="_optionsTitle";var a1G="maxDate";var P1G="pty";var b1G="pt";var d1G="ut";var u1G="inp";var X1G="calendar";var A1G="format";var i1G="_instance";var h7G='</button>';var I7G="moment";var D7G="<button";var J7G="nth";var S7G="<div class";var d7G="hou";var X7G="econds";var E7G="lass";var N7G="time";var v7G="appen";var Z7G="DateTime";var l4G="mi";var Q4G="ge";var h6G="tend";var m6G="-";var n6G="ons";var K6G="select";var L6G="sel";var y6G="DTE_Bubble_Background";var e6G="DTE_Bubble_Triangle";var o6G="DTE_Bubble_Liner";var I6G="DTE_Inline_Buttons";var l6G="DTE_Inline_Field";var M6G="DTE DTE_Inline";var B6G="DTE_Action_Create";var r6G="DTE_Processing_Indicator";var W6G="multi-noEdit";var D6G="multi-restore";var g6G="multi-info";var R6G="DTE_Field_Error";var U6G="DTE_Label_Info";var x6G="DTE_Field_StateError";var c6G="DTE_Field_Input";var J6G="DTE_Label";var Q6G="DTE_Form_Buttons";var q6G="DTE_Form_Info";var S6G="DTE_Form_Content";var G6G="DTE_Form";var a6G="DTE_Footer";var V6G="DTE_Body_Content";var P6G="DTE_Header_Content";var k6G="DTE_Header";var u6G="ca";var N6G="att";var L2G="filter";var H2G="ab";var f2G="columns";var n8u="cell";var W8u="indexes";var S8u="Da";var Y8u='Hour';var X8u='pm';var w8u='am';var E8u='Sat';var A8u='Fri';var H8u='Thu';var i8u='Wed';var N8u='Tue';var j8u='December';var p8u='November';var f8u='September';var v8u='August';var Z8u='May';var t9u='March';var O9u='February';var h9u='January';var F9u='Previous';var z9u="The selected items contain different values for this input. To edit and set all items for this input to the same value, click or tap here, otherwise they will retain their individual values.";var m9u="Are you sure you wish to delete %d rows?";var n9u="Delete";var K9u="Update";var T9u="Edit entry";var s9u="Create";var L9u="New";var y9u="dra";var B9u="tab";var a9u="ven";var N9u=":";var s5u="am";var L5u="play";var I5u="erro";var M5u="rocessing";var B5u="lete";var R5u="idSrc";var U5u="oApi";var q5u="pi";var V5u="_submitTable";var P5u="_submitError";var u5u="onComplete";var C5u="mplete";var w5u="ces";var E5u="_p";var v5u="valFromData";var F3u="isEm";var D3u="bmit";var U3u="_s";var Q3u="_processing";var G3u='preOpen';var C3u="acti";var h0u="options";var m0u="_optionsUpdate";var e0u="_legacyAjax";var X0u="activeElement";var E0u='keydown';var H0u="butt";var i0u="tle";var s1u="tl";var y1u="ol";var o1u="ke";var r1u="ocu";var W1u="setF";var D1u="eac";var g1u="_fieldFromNode";var U1u="ring";var J1u="match";var V1u="triggerHandler";var d1u="triggerHandle";var w1u="inAr";var i1u="displayField";var p1u='row';var s7u="]";var g7u="Options";var U7u="closeIcb";var c7u="closeCb";var G7u="clos";var a7u="_close";var V7u="messag";var P7u='div.';var u7u="_cl";var Z7u="plete";var m4u="indexOf";var K4u="ajaxUrl";var R4u="edi";var U4u="rc";var c4u="str";var V4u="clas";var d4u="roller";var H4u='processing';var N4u="bodyContent";var p4u="formContent";var h6u="S";var m6u="ov";var n6u="TableTools";var o6u="footer";var R6u="Sr";var U6u="dat";var c6u="templa";var J6u="xte";var G6u="\">";var j6u="orm";var p6u="/";var t2u="lds";var z2u="ete";var K2u="_limitLeft";var s2u="mit";var L2u="sub";var e2u="il";var o2u="rro";var l2u="rs";var B2u="fieldErrors";var g2u="cess";var x2u="uploa";var d2u="oad";var X2u='json';var E2u="ll";var i2u="at";var p2u="upload";var z8X="load";var l8X="al";var M8X="ttr";var B8X="lengt";var r8X="lu";var W8X="pairs";var g8X="fil";var R8X="les";var c8X='xhr.dt';var Q8X='cells().edit()';var q8X='remove';var S8X='rows().delete()';var a8X='rows().edit()';var V8X='edit';var P8X='row().edit()';var k8X="cr";var b8X="reat";var d8X='row.create()';var Y8X="confirm";var X8X="i18n";var w8X="butto";var E8X="tit";var H8X="editor";var f8X="tio";var Z8X="_submit";var h9X="_pr";var z9X="ength";var m9X="_pro";var T9X="eq";var s9X="tto";var L9X="focu";var M9X="editOp";var B9X="ove";var r9X="em";var W9X="R";var x9X="rm";var c9X="remove";var S9X='-';var G9X="join";var V9X="slice";var P9X="otype";var d9X="jo";var E9X="Name";var A9X="_eventName";var j9X="ach";var t5X="multiGet";var n5X="_focus";var K5X="parents";var I5X="rray";var B5X="dit";var r5X="place";var W5X='.';var D5X="find";var g5X='"/>';var U5X="_preopen";var q5X="ttons";var a5X="for";var P5X="but";var d5X="_c";var u5X='inline';var C5X="_edit";var Y5X="lin";var A5X="displayFields";var j5X="ect";var f5X="ns";var h3X="ses";var z3X="rror";var T3X="inError";var s3X='#';var y3X="hide";var e3X="get";var l3X="_message";var r3X="ie";var D3X="enable";var g3X="_formOptions";var R3X="pen";var c3X='main';var J3X='fields';var G3X="map";var a3X='open';var V3X="displayed";var P3X="_fieldNames";var k3X="disable";var b3X="unique";var C3X="template";var Y3X="pend";var X3X="layed";var N3X="isPlainObject";var j3X="tion";var p3X="func";var v3X='data';var Z3X="rows";var t0X="ows";var T0X='label';var L0X="date";var e0X="abl";var l0X='change';var M0X="nde";var D0X="ev";var R0X="dependent";var c0X="undependent";var J0X="maybeOpen";var Q0X="_assembleMain";var G0X="_event";var V0X="multiReset";var P0X="_actionClass";var k0X="action";var b0X="_crudArgs";var d0X="field";var u0X="editFields";var C0X="create";var Y0X="nu";var X0X="mo";var w0X="cre";var E0X="modifie";var A0X="disp";var N0X="los";var f0X="eFields";var v0X="includ";var Z0X="inArray";var h1X="ic";var F1X="ields";var z1X="preventDefault";var T1X="keyCode";var y1X="attr";var e1X="form";var I1X="text";var l1X="bmi";var M1X="su";var W1X="class";var R1X="up";var U1X="key";var x1X="isArray";var c1X='_basic';var J1X="empt";var q1X="ft";var V1X='top';var k1X="be";var u1X="left";var E1X="bubbl";var A1X="tt";var H1X="_postopen";var i1X="includeFields";var N1X="click";var j1X="_clearDynamicInfo";var f1X="_closeReg";var v1X="buttons";var Z1X="header";var t7X="formInfo";var O7X="formError";var F7X='" />';var n7X='<div class="';var T7X="apply";var o7X='bubble';var M7X="open";var B7X="pre";var x7X="v>";var c7X="</di";var S7X="epe";var a7X="itl";var P7X="ma";var k7X="ani";var b7X="us";var d7X="cus";var C7X='boolean';var Y7X="_tidy";var X7X="bject";var H7X="isPl";var i7X="bu";var N7X="bubble";var j7X="_blur";var p7X="blur";var f7X="editOpts";var O4X="fu";var h4X="aj";var F4X="aja";var z4X="ajax";var m4X="_displayReorder";var n4X="splice";var K4X="Arra";var T4X="order";var e4X="ush";var o4X="fields";var I4X="multiSet";var W4X="_dataSource";var c4X="Error";var J4X="elds";var q4X="init";var G4X="cla";var V4X="isAr";var P4X="add";var u4X="node";var C4X="modifier";var Y4X="row";var X4X="ble";var w4X="attach";var A4X="he";var i4X="eat";var N4X="fadeOut";var j4X="cont";var p4X="ight";var m6X="res";var n6X='div.DTE_Body_Content';var K6X="outerHeight";var y6X="adding";var I6X="ppe";var M6X="wrap";var D6X="C";var U6X="as";var q6X="ody";var G6X="anima";var a6X="off";var k6X="fadeIn";var u6X="animate";var Y6X="offsetHeight";var X6X="top";var w6X="width";var E6X="offsetWidth";var H6X="ent";var N6X="spl";var j6X="lo";var v6X="ay";var Z6X="wrapp";var h2X="fse";var F2X="of";var z2X="ten";var L2X="und";var U2X="style";var x2X="body";var q2X="hil";var a2X="bod";var u2X="bl";var E2X="_hide";var H2X="tent";var i2X="co";var j2X="pp";var p2X="ow";var v2X="ispl";var T8W="s=\"";var s8W="<div clas";var L8W="pla";var y8W="conf";var M8W="unbind";var B8W="detach";var r8W="_animate";var g8W="appendTo";var c8W="remo";var q8W="dy";var G8W="ra";var k8W="cli";var b8W="rapper";var u8W="div.";var C8W="wr";var w8W='maxHeight';var E8W='div.DTE_Footer';var A8W='div.DTE_Header';var H8W="height";var f8W="outer";var v8W="pper";var F9W="children";var L9W="_heightCalc";var I9W="target";var r9W="_dte";var W9W="bind";var D9W='click.DTED_Lightbox';var x9W='body';var J9W='auto';var q9W="content";var V9W="per";var P9W="wra";var k9W="ss";var b9W="ackground";var d9W="appe";var Y9W="ima";var X9W="_dt";var w9W="ate";var A9W="_a";var H9W="ac";var j9W="ind";var p9W="bi";var t5W="scrol";var O5W="background";var h5W='opacity';var m5W="_d";var T5W="div";var s5W="_h";var y5W="_dom";var M5W="app";var B5W="ho";var r5W="ni";var W5W="_i";var g5W="gh";var R5W="xten";var G5W="iv>";var a5W="</";var k5W="<d";var b5W="box";var u5W='all';var C5W='close';var Y5W='submit';var X5W="formOptions";var w5W="button";var E5W="settings";var A5W="fieldType";var H5W="os";var j5W="cal";var f5W="un";var Z5W="set";var h3W="length";var m3W="ml";var y3W="ht";var e3W="displ";var o3W="one";var I3W="Up";var l3W="li";var r3W="table";var W3W="nt";var D3W="pare";var g3W="mat";var R3W="an";var U3W="submit";var x3W="pts";var c3W="Id";var J3W="ult";var q3W="no";var G3W="able";var V3W="move";var P3W="eF";var b3W="roy";var d3W="st";var A3W="ck";var N3W="eng";var j3W="A";var p3W="is";var t0W='&';var F0W="replace";var z0W='string';var m0W="ep";var s0W='block';var L0W="proc";var y0W="nam";var e0W="ray";var o0W="Ar";var I0W="multiIds";var g0W="ti";var R0W="_mul";var U0W="val";var x0W="gt";var c0W="multiValues";var Q0W="alue";var q0W="isMultiV";var G0W="ag";var V0W="fie";var k0W="append";var b0W="html";var u0W="abel";var Y0W="lab";var X0W="ch";var w0W='none';var E0W="css";var A0W="U";var N0W="dis";var j0W="isMultiValue";var f0W="oc";var v0W="cu";var Z0W="put";var t1W="pu";var F1W="Class";var z1W="has";var m1W="iValu";var n1W="mult";var T1W="leng";var L1W="do";var y1W="fieldError";var o1W="container";var I1W="ror";var l1W="error";var M1W="tainer";var B1W="ass";var W1W="classes";var g1W="ner";var R1W="contai";var x1W="removeClass";var c1W="ont";var J1W="se";var Q1W="las";var S1W="iner";var a1W="ents";var V1W="pa";var P1W="bo";var k1W="th";var b1W="g";var d1W="len";var u1W="sp";var C1W="ne";var X1W="addClass";var w1W="om";var E1W="er";var H1W="con";var i1W="sabled";var j1W="prototype";var p1W="call";var v1W="ce";var Z1W="sl";var t7W="nshift";var O7W="Fn";var h7W="_t";var F7W="pl";var z7W="ap";var m7W='function';var n7W="each";var s7W='click';var L7W="on";var y7W="focus";var e7W="v";var o7W="disabled";var I7W="hasClass";var l7W="multiEditable";var M7W="opts";var B7W="ly";var W7W="dom";var R7W="models";var x7W='display';var c7W="cs";var J7W="prepend";var q7W=null;var S7W='create';var G7W="_typeFn";var V7W="processing";var b7W="message";var E7W='</span>';var A7W="multiInfo";var H7W="title";var i7W="multiValue";var j7W="inputControl";var v7W='</label>';var Z7W='</div>';var t4W="labelInfo";var F4W="label";var z4W='">';var n4W="className";var T4W=' ';var s4W="wrapper";var y4W="data";var e4W="_fnGetObjectDataFn";var o4W="na";var I4W="ata";var l4W="op";var D4W="id";var g4W="name";var R4W="Field";var U4W="extend";var J4W="fieldTypes";var Q4W="defaults";var q4W="8n";var S4W="i1";var G4W="lt";var a4W="xt";var V4W="ngs";var P4W="setti";var k4W="Types";var b4W="ield";var d4W="ta";var u4W="da";var C4W="Api";var H4W="_f";var N4W="<di";var v4W="=\"";var t6W="eId";var O6W="af";var h6W="nput";var F6W="/>";var n6W="in";var T6W=" class=\"";var L6W="-m";var l6W=">";var M6W="\"";var r6W="/div>";var W6W="<";var R6W="la";var J6W="mu";var Q6W="sing";var S6W="fiel";var G6W="k";var a6W="lic";var V6W="rn";var k6W=true;var d6W=false;var u6W='object';var C6W="ct";var Y6W="ngt";var X6W="gth";var w6W="ng";var E6W="sh";var p6W="files";var f6W="push";var v6W='"]';var O2W="fn";var h2W="2def";var F2W="Editor";var z2W="_constructor";var n2W="6f";var K2W="29";var T2W="newer";var s2W="requires DataTables 1.10.7 or ";var L2W="or ";var y2W="Edit";var e2W='1.10.7';var o2W="versionCheck";var I2W="2b36";var l2W="dataTable";var M2W='s';var B2W='';var c2W="ai";var J2W="rem";var Q2W=" ";var P2W="2";var Y2W="heck";var X2W="versionC";var w2W="5";var E2W="le";var A2W="aTab";var H2W="ld";var i2W="Fie";var N2W="ode";var j2W="ts";var p2W="aul";var f2W="def";var v2W="gs";var Z2W="etti";var t8M="ntroller";var O8M="layCo";var h8M="els";var F8M="od";var z8M="m";var m8M="ur";var n8M="lose";var K8M="fo";var T8M="lay";var s8M="isp";var L8M="ound";var y8M="kgr";var e8M="bac";var o8M="blu";var I8M="ot";var l8M="Position";var M8M="ubble";var B8M="ea";var r8M="cl";var W8M="reate";var D8M="typ";var g8M="troy";var R8M="des";var U8M="totype";var x8M="display";var c8M="yNode";var J8M="spla";var Q8M="di";var q8M="otyp";var S8M="rot";var G8M="el";var a8M="file";var V8M="ototyp";var P8M="ine";var k8M="inl";var b8M="tiS";var d8M="mul";var u8M="prototy";var C8M="roto";var Y8M="et";var X8M="prototyp";var w8M="w";var E8M="sho";var A8M="va";var H8M="ster";var i8M="gi";var N8M="re";var j8M="r(";var p8M="edito";var f8M="ete()";var v8M=".del";var Z8M="row(";var t9M=").edit()";var O9M="cell(";var h9M=")";var F9M="file(";var z9M="()";var m9M="iles";var n9M="ro";var K9M="feId";var T9M="ad";var s9M="plo";var L9M="ax";var y9M="mate";var e9M="_ani";var o9M="oty";var I9M="rDynamicInfo";var l9M="_clea";var M9M="yp";var B9M="crudArg";var r9M="aSource";var W9M="_da";var D9M="ototy";var g9M="der";var R9M="_displayReo";var U9M="edit";var x9M="ve";var c9M="_e";var J9M="ty";var Q9M="oto";var q9M="pr";var S9M="prot";var G9M="ions";var a9M="formOpt";var V9M="_";var P9M="ototype";var k9M="nf";var b9M="_multiI";var d9M="en";var u9M="_preop";var C9M="type";var Y9M="rototype";var X9M="to";var w9M="ccess";var E9M="_submitSu";var A9M="ype";var H9M="tot";var i9M="p";var N9M="toty";var j9M="pro";var p9M="_ti";var f9M="kInArray";var v9M="_wea";var Z9M="htbox";var t5M="lig";var O5M="wId";var h5M="Ro";var F5M="T_";var z5M="tr";var m5M="Create new en";var n5M="let";var K5M="De";var T5M="elete 1 row?";var s5M="o d";var L5M="you sure you wish t";var y5M="Are ";var e5M="red (<a target=\"_blank\" href=\"//datatables.net/tn/12\">More information</a>).";var o5M="A system error has occur";var I5M="e values";var l5M="Multipl";var M5M="ges";var B5M="Undo chan";var r5M="lly, but not part of a group.";var W5M=" individua";var D5M=" edited";var g5M="This input can be";var R5M="ex";var U5M="N";var x5M="Apri";var c5M="une";var J5M="u";var Q5M="J";var q5M="ber";var S5M="cto";var G5M="O";var a5M="Su";var V5M="M";var P5M="ute";var k5M="Min";var b5M="ond";var d5M="Se";var u5M="nd";var C5M="te";var Y5M="mode";var X5M="ed";var w5M="chang";var E5M="exte";var A5M="ptions";var H5M="formO";var i5M="ange";var N5M="h";var j5M="end";var p5M="ext";var f5M="asses";var v5M="c";var Z5M="T";var t3M="icator";var O3M="DTE_Processing_Ind";var h3M="ing";var F3M="s";var z3M="proces";var m3M="_Body";var n3M="E";var K3M="_Footer_Content";var T3M="r";var s3M="o";var L3M="rr";var y3M="DTE_Form_E";var e3M="b";var o3M="bt";var I3M="TE_Field";var l3M="E_Field_Type_";var M3M="TE_Field_Name_";var B3M="D";var r3M="ontrol";var W3M="d_InputC";var D3M="l";var g3M="DTE_Fie";var R3M="sage";var U3M="es";var x3M="eld_M";var c3M="DTE_Fi";var J3M="Info";var Q3M="ield_";var q3M="F";var S3M="DTE_";var G3M="-value";var a3M="multi";var V3M="ion_Ed";var P3M="_Act";var k3M="DTE";var b3M="E_Action_Remove";var d3M="E_Bubble";var u3M="DT";var C3M="DTE ";var Y3M="Table";var X3M="le_";var w3M="DTE_Bubb";var E3M="close";var A3M="icon ";var H3M="proto";var i3M="me";var N3M="eTi";var j3M="Dat";var p3M="aults";var f3M="de";var v3M="YYY-MM-DD";var Z3M="Y";var t0M="8";var O0M="i";var h0M="ime";var F0M="tet";var z0M="d";var m0M="x";var n0M="ds";var K0M="iel";var T0M="editorF";var s0M="eldTypes";var L0M="fi";var y0M="pe";var e0M="y";var o0M="protot";var I0M="or";var l0M="it";var M0M="Ed";var B0M="ion";var r0M="vers";var W0M="0";var D0M="9.";var g0M=".";var H0M=500;var i0M=400;var j0M=100;var p0M=60;var f0M=59;var m1M=27;var K1M=24;var s1M=20;var e1M=13;var o1M=12;var I1M=11;var l1M=10;var B1M=7;var r1M=6;var W1M=4;var D1M=3;var g1M=2;var R1M=1;var U1M=0;var x1M=d3A.G0M;x1M+=g0M;x1M+=D0M;x1M+=W0M;var c1M=r0M;c1M+=B0M;var J1M=M0M;J1M+=l0M;J1M+=I0M;var Q1M=o0M;Q1M+=e0M;Q1M+=y0M;var q1M=L0M;q1M+=s0M;var S1M=T0M;S1M+=K0M;S1M+=n0M;var V1M=d3A.S0M;V1M+=m0M;V1M+=d3A.k0M;var Z9Y=z0M;Z9Y+=d3A.q0M;Z9Y+=F0M;Z9Y+=h0M;var t5Y=O0M;t5Y+=d3A.G0M;t5Y+=t0M;t5Y+=d3A.c0M;var O5Y=Z3M;O5Y+=v3M;var h5Y=f3M;h5Y+=d3A.Q0M;h5Y+=p3M;var F5Y=j3M;F5Y+=N3M;F5Y+=i3M;var Z4Y=H3M;Z4Y+=d3A.k0M;Z4Y+=e0M;Z4Y+=y0M;var P8y=A3M;P8y+=E3M;var k8y=w3M;k8y+=X3M;k8y+=Y3M;var b8y=C3M;b8y+=u3M;b8y+=d3M;var d8y=u3M;d8y+=b3M;var u8y=k3M;u8y+=P3M;u8y+=V3M;u8y+=l0M;var C8y=a3M;C8y+=G3M;var Y8y=S3M;Y8y+=q3M;Y8y+=Q3M;Y8y+=J3M;var X8y=c3M;X8y+=x3M;X8y+=U3M;X8y+=R3M;var w8y=g3M;w8y+=D3M;w8y+=W3M;w8y+=r3M;var E8y=B3M;E8y+=M3M;var A8y=u3M;A8y+=l3M;var H8y=B3M;H8y+=I3M;var i8y=o3M;i8y+=d3A.c0M;var N8y=e3M;N8y+=d3A.k0M;N8y+=d3A.c0M;var j8y=y3M;j8y+=L3M;j8y+=s3M;j8y+=T3M;var p8y=k3M;p8y+=K3M;var f8y=u3M;f8y+=n3M;f8y+=m3M;var v8y=z3M;v8y+=F3M;v8y+=h3M;var Z8y=O3M;Z8y+=t3M;var t9y=B3M;t9y+=Z5M;t9y+=n3M;var O9y=v5M;O9y+=D3M;O9y+=f5M;var b3y=p5M;b3y+=j5M;var d3y=v5M;d3y+=N5M;d3y+=i5M;d3y+=z0M;var u3y=H5M;u3y+=A5M;var C3y=E5M;C3y+=d3A.c0M;C3y+=z0M;var Y3y=w5M;Y3y+=X5M;var X3y=Y5M;X3y+=D3M;X3y+=F3M;var w3y=d3A.S0M;w3y+=m0M;w3y+=C5M;w3y+=u5M;var E3y=d5M;E3y+=v5M;E3y+=b5M;var A3y=k5M;A3y+=P5M;var H3y=V5M;H3y+=s3M;H3y+=d3A.c0M;var i3y=a5M;i3y+=d3A.c0M;var N3y=G5M;N3y+=S5M;N3y+=q5M;var j3y=Q5M;j3y+=J5M;j3y+=D3M;j3y+=e0M;var p3y=Q5M;p3y+=c5M;var f3y=x5M;f3y+=D3M;var v3y=U5M;v3y+=R5M;v3y+=d3A.k0M;var Z3y=g5M;Z3y+=D5M;Z3y+=W5M;Z3y+=r5M;var t0y=B5M;t0y+=M5M;var O0y=l5M;O0y+=I5M;var h0y=o5M;h0y+=e5M;var F0y=y5M;F0y+=L5M;F0y+=s5M;F0y+=T5M;var z0y=K5M;z0y+=n5M;z0y+=d3A.S0M;var m0y=M0M;m0y+=O0M;m0y+=d3A.k0M;var n0y=m5M;n0y+=z5M;n0y+=e0M;var K0y=B3M;K0y+=F5M;K0y+=h5M;K0y+=O5M;var T0y=t5M;T0y+=Z9M;var s0y=v9M;s0y+=f9M;var x0y=p9M;x0y+=z0M;x0y+=e0M;var c0y=j9M;c0y+=N9M;c0y+=i9M;c0y+=d3A.S0M;var G0y=j9M;G0y+=H9M;G0y+=A9M;var b1y=E9M;b1y+=w9M;var d1y=j9M;d1y+=X9M;d1y+=d3A.k0M;d1y+=A9M;var C7y=i9M;C7y+=Y9M;var w7y=H3M;w7y+=C9M;var j7y=u9M;j7y+=d9M;var y4y=b9M;y4y+=k9M;y4y+=s3M;var J4y=i9M;J4y+=T3M;J4y+=P9M;var C4y=H3M;C4y+=d3A.k0M;C4y+=e0M;C4y+=y0M;var k6y=V9M;k6y+=a9M;k6y+=G9M;var w6y=S9M;w6y+=s3M;w6y+=C9M;var A6y=q9M;A6y+=Q9M;A6y+=J9M;A6y+=y0M;var h2y=c9M;h2y+=x9M;h2y+=d3A.c0M;h2y+=d3A.k0M;var S2y=V9M;S2y+=U9M;var f2y=R9M;f2y+=T3M;f2y+=g9M;var v2y=q9M;v2y+=D9M;v2y+=y0M;var z8P=W9M;z8P+=d3A.k0M;z8P+=r9M;var m8P=H3M;m8P+=C9M;var e8P=V9M;e8P+=B9M;e8P+=F3M;var g8P=j9M;g8P+=H9M;g8P+=M9M;g8P+=d3A.S0M;var S8P=l9M;S8P+=I9M;var G8P=S9M;G8P+=o9M;G8P+=y0M;var p8P=e9M;p8P+=y9M;var S9P=V9M;S9P+=d3A.q0M;S9P+=d3A.d0M;S9P+=L9M;var G9P=j9M;G9P+=d3A.k0M;G9P+=s3M;G9P+=C9M;var s0P=J5M;s0P+=s9M;s0P+=T9M;var y0P=F3M;y0P+=d3A.q0M;y0P+=K9M;var W0P=d3A.S0M;W0P+=T3M;W0P+=n9M;W0P+=T3M;var J0P=s3M;J0P+=d3A.c0M;var Q0P=d3A.Q0M;Q0P+=m9M;Q0P+=z9M;var q0P=F9M;q0P+=h9M;var a0P=O9M;a0P+=t9M;var k0P=Z8M;k0P+=h9M;k0P+=v8M;k0P+=f8M;var C0P=p8M;C0P+=j8M;C0P+=h9M;var i0P=N8M;i0P+=i8M;i0P+=H8M;var p0P=A8M;p0P+=D3M;var f0P=j9M;f0P+=X9M;f0P+=C9M;var h1P=d3A.k0M;h1P+=l0M;h1P+=D3M;h1P+=d3A.S0M;var F1P=i9M;F1P+=Y9M;var L1P=E8M;L1P+=w8M;var y1P=X8M;y1P+=d3A.S0M;var l1P=F3M;l1P+=Y8M;var Y1P=I0M;Y1P+=z0M;Y1P+=d3A.S0M;Y1P+=T3M;var p1P=i9M;p1P+=C8M;p1P+=C9M;var v1P=j9M;v1P+=d3A.k0M;v1P+=o9M;v1P+=y0M;var O7P=u8M;O7P+=i9M;O7P+=d3A.S0M;var T7P=d8M;T7P+=b8M;T7P+=Y8M;var s4P=k8M;s4P+=P8M;var L4P=i9M;L4P+=T3M;L4P+=V8M;L4P+=d3A.S0M;var B4P=O0M;B4P+=z0M;B4P+=F3M;var D4P=q9M;D4P+=V8M;D4P+=d3A.S0M;var g4P=a8M;g4P+=F3M;var R4P=q9M;R4P+=D9M;R4P+=i9M;R4P+=d3A.S0M;var U4P=d3A.Q0M;U4P+=O0M;U4P+=D3M;U4P+=d3A.S0M;var x4P=q9M;x4P+=P9M;var Q4P=d3A.Q0M;Q4P+=O0M;Q4P+=G8M;Q4P+=z0M;var q4P=i9M;q4P+=S8M;q4P+=q8M;q4P+=d3A.S0M;var a4P=i9M;a4P+=C8M;a4P+=d3A.k0M;a4P+=A9M;var X4P=Q8M;X4P+=J8M;X4P+=c8M;var E4P=x8M;E4P+=X5M;var A4P=j9M;A4P+=N9M;A4P+=y0M;var N4P=j9M;N4P+=U8M;var h6P=R8M;h6P+=g8M;var F6P=q9M;F6P+=Q9M;F6P+=D8M;F6P+=d3A.S0M;var S6P=S9M;S6P+=q8M;S6P+=d3A.S0M;var k6P=S9M;k6P+=s3M;k6P+=C9M;var v6P=v5M;v6P+=W8M;var s2P=r8M;s2P+=B8M;s2P+=T3M;var f2P=e3M;f2P+=M8M;f2P+=l8M;var v2P=j9M;v2P+=d3A.k0M;v2P+=I8M;v2P+=A9M;var V8B=X8M;V8B+=d3A.S0M;var P8B=o8M;P8B+=T3M;var k8B=j9M;k8B+=H9M;k8B+=A9M;var Y8B=e8M;Y8B+=y8M;Y8B+=L8M;var X8B=q9M;X8B+=V8M;X8B+=d3A.S0M;var A8B=o0M;A8B+=A9M;var S1B=z0M;S1B+=s8M;S1B+=T8M;var G1B=n9M;G1B+=w8M;var a1B=K8M;a1B+=v5M;a1B+=J5M;a1B+=F3M;var V1B=v5M;V1B+=n8M;var P1B=e3M;P1B+=D3M;P1B+=m8M;var k1B=z8M;k1B+=F8M;k1B+=h8M;var b1B=z0M;b1B+=s8M;b1B+=O8M;b1B+=t8M;var d1B=Y5M;d1B+=D3M;d1B+=F3M;var u1B=z0M;u1B+=s3M;u1B+=z8M;var C1B=F3M;C1B+=Z2W;C1B+=d3A.c0M;C1B+=v2W;var Y1B=d3A.k0M;Y1B+=p5M;var X1B=f2W;X1B+=p2W;X1B+=j2W;var w1B=z8M;w1B+=N2W;w1B+=D3M;w1B+=F3M;var b2B=i2W;b2B+=H2W;var j2B=j3M;j2B+=A2W;j2B+=E2W;var p2B=d3A.S0M;p2B+=d3A.a0M;p2B+=w2W;p2B+=d3A.q0M;var Z2B=X2W;Z2B+=Y2W;var t8=d3A.Q0M;t8+=d3A.c0M;'use strict';d3A.I8=function(l8){if(d3A)return d3A.I6(l8);};d3A.Q3=function(q3){if(d3A)return d3A.I6(q3);};(function(){var r2W=' day';var W2W="a3be";var D2W="log";var g2W="aTables Editor trial info - ";var R2W="7";var U2W="66b";var x2W="ning";var q2W='Editor - Trial expired';var S2W='for Editor, please see https://editor.datatables.net/purchase';var G2W='Your trial has now expired. To purchase a license ';var a2W="ank you for trying DataTables Editor\n\n";var V2W="Th";var k2W="b1a";var b2W="getTime";var d2W="ceil";var u2W="4";var C2W="getTi";var C0M=2315508157;var Y0M=1555027200;var w0M=1000;var K8=C2W;K8+=z8M;K8+=d3A.S0M;var T8=e3M;T8+=d3A.V0M;T8+=z0M;var s8=d3A.S0M;s8+=d3A.a0M;s8+=u2W;s8+=e3M;d3A.v5=function(Z5){if(d3A)return d3A.l6(Z5);};d3A.h0=function(F0){if(d3A&&F0)return d3A.l6(F0);};d3A.a0=function(V0){if(d3A)return d3A.l6(V0);};var remaining=Math[d3A.m1(s8)?d2W:d3A.U0M]((new Date((d3A.a0(T8)?Y0M:C0M)*w0M)[b2W]()-new Date()[K8]())/(w0M*p0M*p0M*K1M));if(remaining<=U1M){var m8=k2W;m8+=P2W;var n8=V2W;n8+=a2W;alert(n8+G2W+(d3A.h0(m8)?d3A.U0M:S2W));throw q2W;}else if(remaining<=B1M){var O8=Q2W;O8+=J2W;O8+=c2W;O8+=x2W;var h8=U2W;h8+=d3A.G0M;var F8=e3M;F8+=R2W;F8+=t0M;F8+=P2W;var z8=j3M;z8+=g2W;console[D2W]((d3A.Q3(W2W)?d3A.U0M:z8)+remaining+r2W+(remaining===(d3A.v5(F8)?r1M:R1M)?B2W:M2W)+(d3A.R5(h8)?d3A.U0M:O8));}}());var DataTable=$[t8][l2W];if(!DataTable||!DataTable[Z2B]||!DataTable[d3A.N9(I2W)?d3A.U0M:o2W](e2W)){var f2B=y2W;f2B+=L2W;f2B+=s2W;f2B+=T2W;var v2B=K2W;v2B+=n2W;throw d3A.B9(v2B)?d3A.U0M:f2B;}var Editor=function(opts){var m2W="DataTables Editor must be initialised as a 'new' instance'";if(!(this instanceof Editor)){alert(m2W);}this[z2W](opts);};DataTable[F2W]=Editor;$[d3A.E8(h2W)?d3A.U0M:O2W][d3A.I8(p2B)?j2B:d3A.U0M][F2W]=Editor;var _editor_el=function(dis,ctx){var Z6W="data-dte-e=\"";var t2W="*[";var N2B=t2W;N2B+=Z6W;if(ctx===undefined){ctx=document;}return $(N2B+dis+v6W,ctx);};var __inlineCounter=U1M;var _pluck=function(a,prop){var i2B=d3A.S0M;i2B+=d3A.q0M;i2B+=v5M;i2B+=N5M;var out=[];$[i2B](a,function(idx,el){out[f6W](el[prop]);});return out;};var _api_file=function(name,id){var i6W='Unknown file id ';var N6W="n table ";var j6W=" i";var table=this[p6W](name);var file=table[id];if(!file){var H2B=j6W;H2B+=N6W;throw i6W+id+H2B+name;}return table[id];};var _api_files=function(name){var H6W='Unknown file table name: ';var E2B=d3A.Q0M;E2B+=O0M;E2B+=E2W;E2B+=F3M;if(!name){var A2B=a8M;A2B+=F3M;return Editor[A2B];}var table=Editor[E2B][name];if(!table){throw H6W+name;}return table;};var _objectKeys=function(o){var A6W="hasOwnProperty";var out=[];for(var key in o){if(o[A6W](key)){var w2B=i9M;w2B+=J5M;w2B+=E6W;out[w2B](key);}}return out;};var _deepCompare=function(o1,o2){var b6W="je";var u2B=E2W;u2B+=w6W;u2B+=d3A.k0M;u2B+=N5M;var C2B=D3M;C2B+=d3A.S0M;C2B+=d3A.c0M;C2B+=X6W;var Y2B=E2W;Y2B+=Y6W;Y2B+=N5M;var X2B=d3A.u0M;X2B+=d3A.d0M;X2B+=d3A.S0M;X2B+=C6W;if(typeof o1!==u6W||typeof o2!==X2B){return o1==o2;}var o1Props=_objectKeys(o1);var o2Props=_objectKeys(o2);if(o1Props[Y2B]!==o2Props[C2B]){return d6W;}for(var i=U1M,ien=o1Props[u2B];i<ien;i++){var d2B=d3A.u0M;d2B+=b6W;d2B+=C6W;var propName=o1Props[i];if(typeof o1[propName]===d2B){if(!_deepCompare(o1[propName],o2[propName])){return d6W;}}else if(o1[propName]!=o2[propName]){return d6W;}}return k6W;};Editor[b2B]=function(opts,classes,host){var D7W='multi-info';var g7W='msg-multi';var U7W="none";var Q7W='input-control';var a7W='"><span/></div>';var P7W='<div data-dte-e="field-processing" class="';var k7W='msg-info';var d7W='msg-message';var u7W='"></div>';var C7W='msg-error';var Y7W="restore";var X7W="multiRestore";var w7W='<div data-dte-e="msg-multi" class="';var N7W='<div data-dte-e="multi-value" class="';var p7W='<div data-dte-e="input-control" class="';var f7W='<div data-dte-e="input" class="';var O4W='msg-label';var h4W='<div data-dte-e="msg-label" class="';var m4W='<label data-dte-e="label" class="';var K4W="namePrefix";var M4W="taPr";var B4W="dataProp";var r4W="eld_";var W4W="E_Fi";var x4W="dding field - unknown field type ";var c4W="Error a";var Y4W="FromData";var X4W="oData";var w4W="valT";var E4W="jectDataFn";var A4W="nSetO";var i4W="v class=\"";var j4W="efix";var p4W="typePr";var f4W="bel";var Z4W="\" f";var z6W="info\" class=\"";var m6W="<span data-dte-e=\"multi-";var K6W="div data-dte-e=\"msg-error\" class=\"";var s6W="essage\"";var y6W="<div data-dte-e=\"msg";var e6W="nfo\" class=\"";var o6W="a-dte-e=\"msg-i";var I6W="<div dat";var B6W="dInfo";var D6W="rol";var g6W="nput-cont";var U6W="g-label";var x6W="ms";var c6W="lti";var q6W="-proces";var P6W="ultiRet";var G6B=J9M;G6B+=y0M;var V6B=z8M;V6B+=P6W;V6B+=J5M;V6B+=V6W;var P6B=z0M;P6B+=s3M;P6B+=z8M;var d6B=v5M;d6B+=a6W;d6B+=G6W;var u6B=s3M;u6B+=d3A.c0M;var C6B=S6W;C6B+=z0M;C6B+=q6W;C6B+=Q6W;var Y6B=J6W;Y6B+=c6W;Y6B+=G3M;var X6B=x6W;X6B+=U6W;var w6B=R6W;w6B+=e3M;w6B+=d3A.S0M;w6B+=D3M;var E6B=O0M;E6B+=g6W;E6B+=D6W;var A6B=z0M;A6B+=s3M;A6B+=z8M;var H6B=z0M;H6B+=s3M;H6B+=z8M;var N6B=W6W;N6B+=r6W;var j6B=d3A.Q0M;j6B+=K0M;j6B+=B6W;var p6B=M6W;p6B+=l6W;var f6B=I6W;f6B+=o6W;f6B+=e6W;var v6B=M6W;v6B+=l6W;var Z6B=y6W;Z6B+=L6W;Z6B+=s6W;Z6B+=T6W;var t2B=W6W;t2B+=K6W;var O2B=M6W;O2B+=l6W;var h2B=n6W;h2B+=K8M;var F2B=M6W;F2B+=l6W;var z2B=m6W;z2B+=z6W;var m2B=M6W;m2B+=l6W;var n2B=M6W;n2B+=F6W;var K2B=O0M;K2B+=h6W;var T2B=O0M;T2B+=z0M;var s2B=F3M;s2B+=O6W;s2B+=t6W;var L2B=Z4W;L2B+=I0M;L2B+=v4W;var y2B=D3M;y2B+=d3A.q0M;y2B+=f4W;var e2B=M6W;e2B+=l6W;var o2B=d3A.k0M;o2B+=e0M;o2B+=i9M;o2B+=d3A.S0M;var I2B=p4W;I2B+=j4W;var l2B=N4W;l2B+=i4W;var M2B=H4W;M2B+=A4W;M2B+=e3M;M2B+=E4W;var B2B=w4W;B2B+=X4W;var r2B=A8M;r2B+=D3M;r2B+=Y4W;var W2B=s3M;W2B+=C4W;var R2B=u4W;R2B+=d4W;var Q2B=d3A.Q0M;Q2B+=b4W;Q2B+=k4W;var q2B=P4W;q2B+=V4W;var a2B=q3M;a2B+=O0M;a2B+=G8M;a2B+=z0M;var V2B=d3A.S0M;V2B+=a4W;V2B+=d3A.S0M;V2B+=u5M;var P2B=z8M;P2B+=J5M;P2B+=G4W;P2B+=O0M;var k2B=S4W;k2B+=q4W;var that=this;var multiI18n=host[k2B][P2B];opts=$[V2B](k6W,{},Editor[a2B][Q4W],opts);if(!Editor[J4W][opts[C9M]]){var S2B=D8M;S2B+=d3A.S0M;var G2B=c4W;G2B+=x4W;throw G2B+opts[S2B];}this[F3M]=$[U4W]({},Editor[R4W][q2B],{type:Editor[Q2B][opts[C9M]],name:opts[g4W],classes:classes,host:host,opts:opts,multiValue:d6W});if(!opts[D4W]){var c2B=d3A.c0M;c2B+=d3A.q0M;c2B+=z8M;c2B+=d3A.S0M;var J2B=B3M;J2B+=Z5M;J2B+=W4W;J2B+=r4W;opts[D4W]=J2B+opts[c2B];}if(opts[B4W]){var U2B=u4W;U2B+=M4W;U2B+=l4W;var x2B=z0M;x2B+=I4W;opts[x2B]=opts[U2B];}if(opts[R2B]===B2W){var D2B=o4W;D2B+=i3M;var g2B=u4W;g2B+=d4W;opts[g2B]=opts[D2B];}var dtPrivateApi=DataTable[p5M][W2B];this[r2B]=function(d){var L4W='editor';return dtPrivateApi[e4W](opts[y4W])(d,L4W);};this[B2B]=dtPrivateApi[M2B](opts[y4W]);var template=$(l2B+classes[s4W]+T4W+classes[I2B]+opts[o2B]+T4W+classes[K4W]+opts[g4W]+T4W+opts[n4W]+e2B+m4W+classes[y2B]+L2B+Editor[s2B](opts[T2B])+z4W+opts[F4W]+h4W+classes[O4W]+z4W+opts[t4W]+Z7W+v7W+f7W+classes[K2B]+z4W+p7W+classes[j7W]+n2B+N7W+classes[i7W]+m2B+multiI18n[H7W]+z2B+classes[A7W]+F2B+multiI18n[h2B]+E7W+Z7W+w7W+classes[X7W]+O2B+multiI18n[Y7W]+Z7W+t2B+classes[C7W]+u7W+Z6B+classes[d7W]+v6B+opts[b7W]+Z7W+f6B+classes[k7W]+p6B+opts[j6B]+Z7W+Z7W+P7W+classes[V7W]+a7W+N6B);var input=this[G7W](S7W,opts);if(input!==q7W){_editor_el(Q7W,template)[J7W](input);}else{var i6B=c7W;i6B+=F3M;template[i6B](x7W,U7W);}this[H6B]=$[U4W](k6W,{},Editor[R4W][R7W][A6B],{container:template,inputControl:_editor_el(E6B,template),label:_editor_el(w6B,template),fieldInfo:_editor_el(k7W,template),labelInfo:_editor_el(X6B,template),fieldError:_editor_el(C7W,template),fieldMessage:_editor_el(d7W,template),multi:_editor_el(Y6B,template),multiReturn:_editor_el(g7W,template),multiInfo:_editor_el(D7W,template),processing:_editor_el(C6B,template)});this[W7W][a3M][u6B](d6B,function(){var r7W="reado";var b6B=r7W;b6B+=d3A.c0M;b6B+=B7W;if(that[F3M][M7W][l7W]&&!template[I7W](classes[o7W])&&opts[C9M]!==b6B){var k6B=e7W;k6B+=d3A.q0M;k6B+=D3M;that[k6B](B2W);that[y7W]();}});this[P6B][V6B][L7W](s7W,function(){var K7W="tore";var T7W="multiRe";var a6B=T7W;a6B+=F3M;a6B+=K7W;that[a6B]();});$[n7W](this[F3M][G6B],function(name,fn){if(typeof fn===m7W&&that[name]===undefined){that[name]=function(){var f1W="rototyp";var c6B=z7W;c6B+=F7W;c6B+=e0M;var J6B=h7W;J6B+=e0M;J6B+=y0M;J6B+=O7W;var Q6B=J5M;Q6B+=t7W;var q6B=Z1W;q6B+=O0M;q6B+=v1W;var S6B=i9M;S6B+=f1W;S6B+=d3A.S0M;var args=Array[S6B][q6B][p1W](arguments);args[Q6B](name);var ret=that[J6B][c6B](that,args);return ret===undefined?that:ret;};}});};Editor[R4W][j1W]={def:function(set){var N1W='default';var x6B=z0M;x6B+=d3A.S0M;x6B+=d3A.Q0M;var opts=this[F3M][M7W];if(set===undefined){var def=opts[N1W]!==undefined?opts[N1W]:opts[f2W];return typeof def===m7W?def():def;}opts[x6B]=set;return this;},disable:function(){var Y1W='disable';var A1W="tai";var D6B=Q8M;D6B+=i1W;var g6B=v5M;g6B+=D3M;g6B+=f5M;var R6B=H1W;R6B+=A1W;R6B+=d3A.c0M;R6B+=E1W;var U6B=z0M;U6B+=w1W;this[U6B][R6B][X1W](this[F3M][g6B][D6B]);this[G7W](Y1W);return this;},displayed:function(){var G1W="conta";var e6B=d3A.c0M;e6B+=s3M;e6B+=C1W;var o6B=z0M;o6B+=O0M;o6B+=u1W;o6B+=T8M;var I6B=v5M;I6B+=F3M;I6B+=F3M;var l6B=d1W;l6B+=b1W;l6B+=k1W;var M6B=P1W;M6B+=z0M;M6B+=e0M;var B6B=V1W;B6B+=T3M;B6B+=a1W;var r6B=G1W;r6B+=S1W;var W6B=z0M;W6B+=s3M;W6B+=z8M;var container=this[W6B][r6B];return container[B6B](M6B)[l6B]&&container[I6B](o6B)!=e6B?k6W:d6W;},enable:function(){var q1W="nable";var T6B=d3A.S0M;T6B+=q1W;var s6B=h7W;s6B+=A9M;s6B+=O7W;var L6B=v5M;L6B+=Q1W;L6B+=J1W;L6B+=F3M;var y6B=v5M;y6B+=c1W;y6B+=d3A.q0M;y6B+=S1W;this[W7W][y6B][x1W](this[F3M][L6B][o7W]);this[s6B](T6B);return this;},enabled:function(){var U1W="lasse";var m6B=v5M;m6B+=U1W;m6B+=F3M;var n6B=R1W;n6B+=g1W;var K6B=z0M;K6B+=s3M;K6B+=z8M;return this[K6B][n6B][I7W](this[F3M][m6B][o7W])===d6W;},error:function(msg,fn){var e1W='errorMessage';var r1W="dCl";var D1W="_ms";var O6B=D1W;O6B+=b1W;var classes=this[F3M][W1W];if(msg){var F6B=T9M;F6B+=r1W;F6B+=B1W;var z6B=v5M;z6B+=s3M;z6B+=d3A.c0M;z6B+=M1W;this[W7W][z6B][F6B](classes[l1W]);}else{var h6B=E1W;h6B+=I1W;this[W7W][o1W][x1W](classes[h6B]);}this[G7W](e1W,msg);return this[O6B](this[W7W][y1W],msg,fn);},fieldInfo:function(msg){var s1W="fieldInfo";var Z4B=L1W;Z4B+=z8M;var t6B=V9M;t6B+=z8M;t6B+=F3M;t6B+=b1W;return this[t6B](this[Z4B][s1W],msg);},isMultiValue:function(){var K1W="tiIds";var p4B=T1W;p4B+=k1W;var f4B=d8M;f4B+=K1W;var v4B=n1W;v4B+=m1W;v4B+=d3A.S0M;return this[F3M][v4B]&&this[F3M][f4B][p4B]!==R1M;},inError:function(){var H4B=d3A.S0M;H4B+=T3M;H4B+=n9M;H4B+=T3M;var i4B=v5M;i4B+=D3M;i4B+=f5M;var N4B=z1W;N4B+=F1W;var j4B=L1W;j4B+=z8M;return this[j4B][o1W][N4B](this[F3M][i4B][H4B]);},input:function(){var O1W="area";var h1W="input, select, text";var Y4B=H1W;Y4B+=d4W;Y4B+=S1W;var X4B=z0M;X4B+=s3M;X4B+=z8M;var w4B=h1W;w4B+=O1W;var E4B=n6W;E4B+=t1W;E4B+=d3A.k0M;var A4B=O0M;A4B+=d3A.c0M;A4B+=Z0W;return this[F3M][C9M][A4B]?this[G7W](E4B):$(w4B,this[X4B][Y4B]);},focus:function(){var p0W='input, select, textarea';var C4B=K8M;C4B+=v0W;C4B+=F3M;if(this[F3M][C9M][C4B]){var u4B=d3A.Q0M;u4B+=f0W;u4B+=J5M;u4B+=F3M;this[G7W](u4B);}else{$(p0W,this[W7W][o1W])[y7W]();}return this;},get:function(){var b4B=b1W;b4B+=d3A.S0M;b4B+=d3A.k0M;var d4B=h7W;d4B+=A9M;d4B+=O7W;if(this[j0W]()){return undefined;}var val=this[d4B](b4B);return val!==undefined?val:this[f2W]();},hide:function(animate){var H0W="ide";var i0W="slideUp";var P4B=N0W;P4B+=i9M;P4B+=T8M;var k4B=N5M;k4B+=s3M;k4B+=F3M;k4B+=d3A.k0M;var el=this[W7W][o1W];if(animate===undefined){animate=k6W;}if(this[F3M][k4B][P4B]()&&animate&&$[O2W][i0W]){var V4B=Z1W;V4B+=H0W;V4B+=A0W;V4B+=i9M;el[V4B]();}else{el[E0W](x7W,w0W);}return this;},label:function(str){var d0W="tm";var C0W="elIn";var q4B=f3M;q4B+=d4W;q4B+=X0W;var S4B=Y0W;S4B+=C0W;S4B+=K8M;var G4B=D3M;G4B+=u0W;var a4B=z0M;a4B+=s3M;a4B+=z8M;var label=this[a4B][G4B];var labelInfo=this[W7W][S4B][q4B]();if(str===undefined){var Q4B=N5M;Q4B+=d0W;Q4B+=D3M;return label[Q4B]();}label[b0W](str);label[k0W](labelInfo);return this;},labelInfo:function(msg){var P0W="sg";var c4B=z0M;c4B+=s3M;c4B+=z8M;var J4B=V9M;J4B+=z8M;J4B+=P0W;return this[J4B](this[c4B][t4W],msg);},message:function(msg,fn){var S0W="_msg";var a0W="ldMess";var x4B=V0W;x4B+=a0W;x4B+=G0W;x4B+=d3A.S0M;return this[S0W](this[W7W][x4B],msg,fn);},multiGet:function(id){var J0W="iIds";var R4B=q0W;R4B+=Q0W;var U4B=n1W;U4B+=J0W;var value;var multiValues=this[F3M][c0W];var multiIds=this[F3M][U4B];var isMultiValue=this[R4B]();if(id===undefined){var g4B=E2W;g4B+=d3A.c0M;g4B+=x0W;g4B+=N5M;var fieldVal=this[U0W]();value={};for(var i=U1M;i<multiIds[g4B];i++){value[multiIds[i]]=isMultiValue?multiValues[multiIds[i]]:fieldVal;}}else if(isMultiValue){value=multiValues[id];}else{var D4B=e7W;D4B+=d3A.q0M;D4B+=D3M;value=this[D4B]();}return value;},multiRestore:function(){var W0W="eCheck";var D0W="Valu";var W4B=R0W;W4B+=g0W;W4B+=D0W;W4B+=W0W;this[F3M][i7W]=k6W;this[W4B]();},multiSet:function(id,val){var l0W="iV";var M0W="sPlainObje";var B0W="Check";var r0W="tiValue";var I4B=R0W;I4B+=r0W;I4B+=B0W;var l4B=O0M;l4B+=M0W;l4B+=v5M;l4B+=d3A.k0M;var r4B=n1W;r4B+=l0W;r4B+=Q0W;r4B+=F3M;var multiValues=this[F3M][r4B];var multiIds=this[F3M][I0W];if(val===undefined){val=id;id=undefined;}var set=function(idSrc,val){var B4B=O0M;B4B+=d3A.c0M;B4B+=o0W;B4B+=e0W;if($[B4B](multiIds)===-R1M){var M4B=i9M;M4B+=J5M;M4B+=F3M;M4B+=N5M;multiIds[M4B](idSrc);}multiValues[idSrc]=val;};if($[l4B](val)&&id===undefined){$[n7W](val,function(idSrc,innerVal){set(idSrc,innerVal);});}else if(id===undefined){$[n7W](multiIds,function(i,idSrc){set(idSrc,val);});}else{set(id,val);}this[F3M][i7W]=k6W;this[I4B]();return this;},name:function(){var e4B=y0W;e4B+=d3A.S0M;var o4B=l4W;o4B+=d3A.k0M;o4B+=F3M;return this[F3M][o4B][e4B];},node:function(){return this[W7W][o1W][U1M];},processing:function(set){var s4B=Q8M;s4B+=F3M;s4B+=i9M;s4B+=T8M;var L4B=v5M;L4B+=F3M;L4B+=F3M;var y4B=L0W;y4B+=U3M;y4B+=Q6W;this[W7W][y4B][L4B](s4B,set?s0W:w0W);return this;},set:function(val,multiCheck){var H3W="ltiValueChe";var i3W="_mu";var K0W="Deco";var T0W="entity";var F4B=J1W;F4B+=d3A.k0M;var n4B=T0W;n4B+=K0W;n4B+=f3M;var decodeFn=function(d){var f3W='\n';var v3W='\'';var Z3W='"';var O0W='<';var h0W='>';var n0W="repla";var K4B=n0W;K4B+=v5M;K4B+=d3A.S0M;var T4B=T3M;T4B+=m0W;T4B+=R6W;T4B+=v1W;return typeof d!==z0W?d:d[F0W](/&gt;/g,h0W)[F0W](/&lt;/g,O0W)[T4B](/&amp;/g,t0W)[F0W](/&quot;/g,Z3W)[K4B](/&#39;/g,v3W)[F0W](/&#10;/g,f3W);};this[F3M][i7W]=d6W;var decode=this[F3M][M7W][n4B];if(decode===undefined||decode===k6W){var m4B=p3W;m4B+=j3W;m4B+=T3M;m4B+=e0W;if($[m4B](val)){var z4B=D3M;z4B+=N3W;z4B+=d3A.k0M;z4B+=N5M;for(var i=U1M,ien=val[z4B];i<ien;i++){val[i]=decodeFn(val[i]);}}else{val=decodeFn(val);}}this[G7W](F4B,val);if(multiCheck===undefined||multiCheck===k6W){var h4B=i3W;h4B+=H3W;h4B+=A3W;this[h4B]();}return this;},show:function(animate){var C3W="wn";var Y3W="slideDo";var X3W="ontain";var w3W="hos";var E3W="deDown";var Z7B=Z1W;Z7B+=O0M;Z7B+=E3W;var t4B=w3W;t4B+=d3A.k0M;var O4B=v5M;O4B+=X3W;O4B+=E1W;var el=this[W7W][O4B];if(animate===undefined){animate=k6W;}if(this[F3M][t4B][x8M]()&&animate&&$[O2W][Z7B]){var v7B=Y3W;v7B+=C3W;el[v7B]();}else{var f7B=v5M;f7B+=F3M;f7B+=F3M;el[f7B](x7W,B2W);}return this;},val:function(val){var j7B=F3M;j7B+=d3A.S0M;j7B+=d3A.k0M;var p7B=b1W;p7B+=d3A.S0M;p7B+=d3A.k0M;return val===undefined?this[p7B]():this[j7B](val);},compare:function(value,original){var u3W="compare";var N7B=s3M;N7B+=i9M;N7B+=j2W;var compare=this[F3M][N7B][u3W]||_deepCompare;return compare(value,original);},dataSrc:function(){var i7B=s3M;i7B+=i9M;i7B+=d3A.k0M;i7B+=F3M;return this[F3M][i7B][y4W];},destroy:function(){var k3W="_ty";var X7B=f3M;X7B+=d3W;X7B+=b3W;var w7B=k3W;w7B+=i9M;w7B+=P3W;w7B+=d3A.c0M;var E7B=N8M;E7B+=V3W;var A7B=R1W;A7B+=C1W;A7B+=T3M;var H7B=z0M;H7B+=s3M;H7B+=z8M;this[H7B][A7B][E7B]();this[w7B](X7B);return this;},multiEditable:function(){var a3W="multiEdit";var Y7B=a3W;Y7B+=G3W;return this[F3M][M7W][Y7B];},multiIds:function(){var S3W="multiId";var C7B=S3W;C7B+=F3M;return this[F3M][C7B];},multiInfoShown:function(show){var Q3W="In";var b7B=q3W;b7B+=C1W;var d7B=e3M;d7B+=D3M;d7B+=s3M;d7B+=A3W;var u7B=a3M;u7B+=Q3W;u7B+=d3A.Q0M;u7B+=s3M;this[W7W][u7B][E0W]({display:show?d7B:b7B});},multiReset:function(){var P7B=z8M;P7B+=J3W;P7B+=m1W;P7B+=U3M;var k7B=d8M;k7B+=g0W;k7B+=c3W;k7B+=F3M;this[F3M][k7B]=[];this[F3M][P7B]={};},submittable:function(){var V7B=s3M;V7B+=x3W;return this[F3M][V7B][U3W];},valFromData:q7W,valToData:q7W,_errorNode:function(){var a7B=z0M;a7B+=s3M;a7B+=z8M;return this[a7B][y1W];},_msg:function(el,msg,fn){var M3W="slideDown";var B3W=":visible";var c7B=R3W;c7B+=O0M;c7B+=g3W;c7B+=d3A.S0M;var J7B=d3A.Q0M;J7B+=d3A.c0M;var Q7B=O0M;Q7B+=F3M;var q7B=D3W;q7B+=W3W;if(msg===undefined){var G7B=N5M;G7B+=d3A.k0M;G7B+=z8M;G7B+=D3M;return el[G7B]();}if(typeof msg===m7W){var S7B=N5M;S7B+=s3M;S7B+=F3M;S7B+=d3A.k0M;var editor=this[F3M][S7B];msg=msg(editor,new DataTable[C4W](editor[F3M][r3W]));}if(el[q7B]()[Q7B](B3W)&&$[J7B][c7B]){el[b0W](msg);if(msg){el[M3W](fn);}else{var x7B=F3M;x7B+=l3W;x7B+=f3M;x7B+=I3W;el[x7B](fn);}}else{var D7B=d3A.c0M;D7B+=o3W;var g7B=e3W;g7B+=d3A.q0M;g7B+=e0M;var R7B=c7W;R7B+=F3M;var U7B=y3W;U7B+=z8M;U7B+=D3M;el[U7B](msg||B2W)[R7B](g7B,msg?s0W:D7B);if(fn){fn();}}return this;},_multiValueCheck:function(){var v5W="noMulti";var t3W="putControl";var O3W="blo";var F3W="ltiRetu";var z3W="i18";var n3W="inf";var K3W="gleClass";var T3W="tog";var s3W="multiNoEd";var L3W="_multi";var f1B=L3W;f1B+=J3M;var v1B=N5M;v1B+=s3M;v1B+=F3M;v1B+=d3A.k0M;var Z1B=s3W;Z1B+=l0M;var t7B=T3W;t7B+=K3W;var O7B=z8M;O7B+=J5M;O7B+=G4W;O7B+=O0M;var h7B=z0M;h7B+=s3M;h7B+=z8M;var F7B=n3W;F7B+=s3M;var z7B=y3W;z7B+=m3W;var m7B=d8M;m7B+=g0W;var n7B=z3W;n7B+=d3A.c0M;var K7B=N5M;K7B+=s3M;K7B+=F3M;K7B+=d3A.k0M;var T7B=q3W;T7B+=d3A.c0M;T7B+=d3A.S0M;var s7B=v5M;s7B+=F3M;s7B+=F3M;var L7B=z8M;L7B+=J5M;L7B+=F3W;L7B+=V6W;var W7B=q0W;W7B+=Q0W;var last;var ids=this[F3M][I0W];var values=this[F3M][c0W];var isMultiValue=this[F3M][i7W];var isMultiEditable=this[F3M][M7W][l7W];var val;var different=d6W;if(ids){for(var i=U1M;i<ids[h3W];i++){val=values[ids[i]];if(i>U1M&&!_deepCompare(val,last)){different=k6W;break;}last=val;}}if(different&&isMultiValue||!isMultiEditable&&this[W7B]()){var l7B=c7W;l7B+=F3M;var M7B=J6W;M7B+=D3M;M7B+=g0W;var B7B=c7W;B7B+=F3M;var r7B=z0M;r7B+=s3M;r7B+=z8M;this[r7B][j7W][B7B]({display:w0W});this[W7W][M7B][l7B]({display:s0W});}else{var y7B=z0M;y7B+=s3M;y7B+=z8M;var e7B=O3W;e7B+=v5M;e7B+=G6W;var o7B=v5M;o7B+=F3M;o7B+=F3M;var I7B=n6W;I7B+=t3W;this[W7W][I7B][o7B]({display:e7B});this[y7B][a3M][E0W]({display:w0W});if(isMultiValue&&!different){this[Z5W](last,d6W);}}this[W7W][L7B][s7B]({display:ids&&ids[h3W]>R1M&&different&&!isMultiValue?s0W:T7B});var i18n=this[F3M][K7B][n7B][m7B];this[W7W][A7W][z7B](isMultiEditable?i18n[F7B]:i18n[v5W]);this[h7B][O7B][t7B](this[F3M][W1W][Z1B],!isMultiEditable);this[F3M][v1B][f1B]();return k6W;},_typeFn:function(name){var i5W="shift";var N5W="ice";var p5W="hif";var H1B=d3A.k0M;H1B+=A9M;var i1B=l4W;i1B+=d3A.k0M;i1B+=F3M;var N1B=f5W;N1B+=F3M;N1B+=p5W;N1B+=d3A.k0M;var j1B=j5W;j1B+=D3M;var p1B=Z1W;p1B+=N5W;var args=Array[j1W][p1B][j1B](arguments);args[i5W]();args[N1B](this[F3M][i1B]);var fn=this[F3M][H1B][name];if(fn){var E1B=N5M;E1B+=H5W;E1B+=d3A.k0M;var A1B=z7W;A1B+=i9M;A1B+=D3M;A1B+=e0M;return fn[A1B](this[F3M][E1B],args);}}};Editor[R4W][w1B]={};Editor[R4W][X1B]={"className":d3A.U0M,"data":d3A.U0M,"def":d3A.U0M,"fieldInfo":d3A.U0M,"id":d3A.U0M,"label":d3A.U0M,"labelInfo":d3A.U0M,"name":q7W,"type":Y1B,"message":d3A.U0M,"multiEditable":k6W,"submit":k6W};Editor[R4W][R7W][C1B]={type:q7W,name:q7W,classes:q7W,opts:q7W,host:q7W};Editor[R4W][R7W][u1B]={container:q7W,label:q7W,labelInfo:q7W,fieldInfo:q7W,fieldError:q7W,fieldMessage:q7W};Editor[d1B]={};Editor[R7W][b1B]={"init":function(dte){},"open":function(dte,append,fn){},"close":function(dte,fn){}};Editor[R7W][A5W]={"create":function(conf){},"get":function(conf){},"set":function(conf,val){},"enable":function(conf){},"disable":function(conf){}};Editor[R7W][E5W]={"ajaxUrl":q7W,"ajax":q7W,"dataSource":q7W,"domTable":q7W,"opts":q7W,"displayController":q7W,"fields":{},"order":[],"id":-R1M,"displayed":d6W,"processing":d6W,"modifier":q7W,"action":q7W,"idSrc":q7W,"unique":U1M};Editor[R7W][w5W]={"label":q7W,"fn":q7W,"className":q7W};Editor[k1B][X5W]={onReturn:Y5W,onBlur:C5W,onBackground:P1B,onComplete:C5W,onEsc:V1B,onFieldError:a1B,submit:u5W,focus:U1M,buttons:k6W,title:k6W,message:k6W,drawType:d6W,scope:G1B};Editor[S1B]={};(function(){var e8W='<div class="DTED_Lightbox_Close"></div>';var o8W='<div class="DTED_Lightbox_Content_Wrapper">';var I8W='<div class="DTED_Lightbox_Container">';var l8W='<div class="DTED DTED_Lightbox_Wrapper">';var y9W='resize.DTED_Lightbox';var e9W="round";var o9W="backg";var c9W="offsetAni";var S9W='DTED_Lightbox_Mobile';var L5W="_shown";var D5W="tbo";var U5W="odels";var x5W="ller";var c5W="ayContro";var J5W="htbox_Content\">";var Q5W="\"DTED_Lig";var q5W="<div class=";var S5W="</div";var V5W="s=\"DTED_Lightbox_Background\"><div/></div>";var P5W="iv clas";var d5W="light";var n1M=25;var Y3B=d5W;Y3B+=b5W;var X3B=k5W;X3B+=P5W;X3B+=V5W;var w3B=a5W;w3B+=Q8M;w3B+=e7W;w3B+=l6W;var E3B=a5W;E3B+=z0M;E3B+=G5W;var A3B=S5W;A3B+=l6W;var H3B=q5W;H3B+=Q5W;H3B+=J5W;var c1B=e3W;c1B+=c5W;c1B+=x5W;var J1B=z8M;J1B+=U5W;var Q1B=d3A.S0M;Q1B+=R5W;Q1B+=z0M;var q1B=l3W;q1B+=g5W;q1B+=D5W;q1B+=m0M;var self;Editor[x8M][q1B]=$[Q1B](k6W,{},Editor[J1B][c1B],{"init":function(dte){var x1B=W5W;x1B+=r5W;x1B+=d3A.k0M;self[x1B]();return self;},"open":function(dte,append,callback){var e5W="_sh";var o5W="onte";var I5W="childr";var l5W="eta";var l1B=V9M;l1B+=F3M;l1B+=B5W;l1B+=w8M;var M1B=v5M;M1B+=D3M;M1B+=H5W;M1B+=d3A.S0M;var B1B=M5W;B1B+=d3A.S0M;B1B+=u5M;var r1B=z0M;r1B+=l5W;r1B+=v5M;r1B+=N5M;var W1B=I5W;W1B+=d9M;var D1B=v5M;D1B+=o5W;D1B+=W3W;var g1B=V9M;g1B+=L1W;g1B+=z8M;var R1B=V9M;R1B+=z0M;R1B+=d3A.k0M;R1B+=d3A.S0M;var U1B=e5W;U1B+=s3M;U1B+=w8M;U1B+=d3A.c0M;if(self[U1B]){if(callback){callback();}return;}self[R1B]=dte;var content=self[g1B][D1B];content[W1B]()[r1B]();content[B1B](append)[k0W](self[y5W][M1B]);self[L5W]=k6W;self[l1B](callback);},"close":function(dte,callback){var o1B=s5W;o1B+=D4W;o1B+=d3A.S0M;var I1B=V9M;I1B+=z0M;I1B+=C5M;if(!self[L5W]){if(callback){callback();}return;}self[I1B]=dte;self[o1B](callback);self[L5W]=d6W;},node:function(dte){return self[y5W][s4W][U1M];},"_init":function(){var F5W="eady";var z5W="_r";var n5W="onten";var K5W="DTED_Lightbox_Conte";var n1B=v5M;n1B+=F3M;n1B+=F3M;var K1B=v5M;K1B+=F3M;K1B+=F3M;var T1B=V9M;T1B+=W7W;var s1B=T5W;s1B+=g0M;s1B+=K5W;s1B+=W3W;var L1B=v5M;L1B+=n5W;L1B+=d3A.k0M;var y1B=m5W;y1B+=s3M;y1B+=z8M;var e1B=z5W;e1B+=F5W;if(self[e1B]){return;}var dom=self[y1B];dom[L1B]=$(s1B,self[T1B][s4W]);dom[s4W][K1B](h5W,U1M);dom[O5W][n1B](h5W,U1M);},"_show":function(callback){var h9W="not";var z9W="ckgro";var m9W="ba";var n9W="<div class=\"DTED_Lightbox_Shown\"";var K9W="x_Shown";var T9W="div.DTED_Lightb";var s9W="orientation";var B9W='div.DTED_Lightbox_Content_Wrapper';var Q9W='height';var G9W="ntat";var a9W="orie";var u9W="ightCalc";var C9W="_he";var E9W="nim";var i9W="ick.DTED_Lightbox";var N9W="rap";var f9W="ollTop";var v9W="_scr";var Z9W="lTo";var J0B=t5W;J0B+=Z9W;J0B+=i9M;var Q0B=e3M;Q0B+=s3M;Q0B+=z0M;Q0B+=e0M;var q0B=v9W;q0B+=f9W;var S0B=p9W;S0B+=u5M;var P0B=e3M;P0B+=j9W;var k0B=w8M;k0B+=N9W;k0B+=y0M;k0B+=T3M;var d0B=r8M;d0B+=i9W;var u0B=e3M;u0B+=H9W;u0B+=y8M;u0B+=L8M;var Y0B=e3M;Y0B+=j9W;var E0B=A9W;E0B+=E9W;E0B+=w9W;var A0B=X9W;A0B+=d3A.S0M;var H0B=V9M;H0B+=R3W;H0B+=Y9W;H0B+=C5M;var i0B=m5W;i0B+=C5M;var N0B=C9W;N0B+=u9W;var j0B=w8M;j0B+=T3M;j0B+=d9W;j0B+=T3M;var p0B=V9M;p0B+=L1W;p0B+=z8M;var f0B=z7W;f0B+=y0M;f0B+=u5M;var v0B=e3M;v0B+=b9W;var Z0B=v5M;Z0B+=s3M;Z0B+=d3A.c0M;Z0B+=d3A.Q0M;var t1B=v5M;t1B+=k9W;var O1B=P9W;O1B+=i9M;O1B+=V9W;var z1B=a9W;z1B+=G9W;z1B+=B0M;var m1B=V9M;m1B+=z0M;m1B+=s3M;m1B+=z8M;var that=this;var dom=self[m1B];if(window[z1B]!==undefined){var h1B=T9M;h1B+=z0M;h1B+=F1W;var F1B=e3M;F1B+=s3M;F1B+=z0M;F1B+=e0M;$(F1B)[h1B](S9W);}dom[q9W][E0W](Q9W,J9W);dom[O1B][t1B]({top:-self[Z0B][c9W]});$(x9W)[k0W](self[y5W][v0B])[f0B](self[p0B][j0B]);self[N0B]();self[i0B][H0B](dom[s4W],{opacity:R1M,top:U1M},callback);self[A0B][E0B](dom[O5W],{opacity:R1M});setTimeout(function(){var g9W="div.DTE_Foot";var R9W="indent";var U9W="text-";var X0B=U9W;X0B+=R9W;var w0B=g9W;w0B+=E1W;$(w0B)[E0W](X0B,-R1M);},l1M);dom[E3M][Y0B](D9W,function(e){var C0B=V9M;C0B+=z0M;C0B+=C5M;self[C0B][E3M]();});dom[u0B][W9W](d0B,function(e){var b0B=e3M;b0B+=b9W;self[r9W][b0B]();});$(B9W,dom[k0B])[P0B](D9W,function(e){var l9W="ox_Content_Wrapper";var M9W="D_Lightb";var V0B=k3M;V0B+=M9W;V0B+=l9W;if($(e[I9W])[I7W](V0B)){var G0B=o9W;G0B+=e9W;var a0B=m5W;a0B+=C5M;self[a0B][G0B]();}});$(window)[S0B](y9W,function(){self[L9W]();});self[q0B]=$(Q0B)[J0B]();if(window[s9W]!==undefined){var g0B=T9W;g0B+=s3M;g0B+=K9W;var R0B=n9W;R0B+=F6W;var U0B=d3A.c0M;U0B+=s3M;U0B+=d3A.k0M;var x0B=m9W;x0B+=z9W;x0B+=f5W;x0B+=z0M;var c0B=P1W;c0B+=z0M;c0B+=e0M;var kids=$(c0B)[F9W]()[h9W](dom[x0B])[U0B](dom[s4W]);$(x9W)[k0W](R0B);$(g0B)[k0W](kids);}},"_heightCalc":function(){var i8W="wPadding";var N8W="win";var j8W="eigh";var p8W="H";var Z8W="rHeight";var t9W="_Content";var O9W="div.DTE_Body";var o0B=O9W;o0B+=t9W;var I0B=s3M;I0B+=P5M;I0B+=Z8W;var l0B=P9W;l0B+=v8W;var M0B=f8W;M0B+=p8W;M0B+=j8W;M0B+=d3A.k0M;var B0B=w8M;B0B+=T3M;B0B+=M5W;B0B+=E1W;var r0B=N8W;r0B+=L1W;r0B+=i8W;var W0B=v5M;W0B+=s3M;W0B+=d3A.c0M;W0B+=d3A.Q0M;var D0B=V9M;D0B+=z0M;D0B+=w1W;var dom=self[D0B];var maxHeight=$(window)[H8W]()-self[W0B][r0B]*g1M-$(A8W,dom[B0B])[M0B]()-$(E8W,dom[l0B])[I0B]();$(o0B,dom[s4W])[E0W](w8W,maxHeight);},"_hide":function(callback){var W8W="_scrollTop";var D8W="scrollTop";var R8W="Lightbox_Show";var U8W="ED_";var x8W="div.DT";var J8W="ation";var Q8W="orient";var S8W="dte";var a8W="unbin";var V8W="ckgrou";var P8W="ck.DTED";var d8W="DTED_Lightbox_Content_W";var Y8W="_Lightbox";var X8W="click.DTED";var i3B=X8W;i3B+=Y8W;var N3B=C8W;N3B+=d9W;N3B+=T3M;var j3B=u8W;j3B+=d8W;j3B+=b8W;var p3B=k8W;p3B+=P8W;p3B+=Y8W;var f3B=f5W;f3B+=e3M;f3B+=n6W;f3B+=z0M;var v3B=e3M;v3B+=d3A.q0M;v3B+=V8W;v3B+=u5M;var Z3B=a8W;Z3B+=z0M;var t0B=r8M;t0B+=H5W;t0B+=d3A.S0M;var O0B=o9W;O0B+=e9W;var h0B=m5W;h0B+=d3A.k0M;h0B+=d3A.S0M;var z0B=v5M;z0B+=L7W;z0B+=d3A.Q0M;var m0B=w8M;m0B+=G8W;m0B+=v8W;var n0B=V9M;n0B+=S8W;var K0B=e3M;K0B+=s3M;K0B+=q8W;var y0B=Q8W;y0B+=J8W;var e0B=V9M;e0B+=W7W;var dom=self[e0B];if(!callback){callback=function(){};}if(window[y0B]!==undefined){var T0B=c8W;T0B+=x9M;var s0B=e3M;s0B+=F8M;s0B+=e0M;var L0B=x8W;L0B+=U8W;L0B+=R8W;L0B+=d3A.c0M;var show=$(L0B);show[F9W]()[g8W](s0B);show[T0B]();}$(K0B)[x1W](S9W)[D8W](self[W8W]);self[n0B][r8W](dom[m0B],{opacity:U1M,top:self[z0B][c9W]},function(){var F0B=f3M;F0B+=d4W;F0B+=X0W;$(this)[F0B]();callback();});self[h0B][r8W](dom[O0B],{opacity:U1M},function(){$(this)[B8W]();});dom[t0B][Z3B](D9W);dom[v3B][f3B](p3B);$(j3B,dom[N3B])[M8W](i3B);$(window)[M8W](y9W);},"_dte":q7W,"_ready":d6W,"_shown":d6W,"_dom":{"wrapper":$(l8W+I8W+o8W+H3B+A3B+Z7W+E3B+w3B),"background":$(X3B),"close":$(e8W),"content":q7W}});self=Editor[x8M][Y3B];self[y8W]={"offsetAni":n1M,"windowPadding":n1M};}());(function(){var k4X="envelope";var b4X='<div class="DTED_Envelope_Close">&times;</div>';var d4X='<div class="DTED_Envelope_Container"></div>';var b6X='normal';var i6X="hei";var b2X="_do";var X2X="backgr";var f2X="displayController";var Z2X="vel";var t8W="Wrapper\">";var O8W="pe_";var h8W=" DTED_Envelo";var F8W="<div class=\"DTED";var z8W="pe_Shadow\"></div>";var m8W="<div class=\"DTED_Envel";var n8W="ackground\"><div/></div>";var K8W="DTED_Envelope_B";var E0M=600;var v0M=50;var y9B=H1W;y9B+=d3A.Q0M;var e9B=Q8M;e9B+=F3M;e9B+=L8W;e9B+=e0M;var o9B=s8W;o9B+=T8W;o9B+=K8W;o9B+=n8W;var I9B=m8W;I9B+=s3M;I9B+=z8W;var l9B=F8W;l9B+=h8W;l9B+=O8W;l9B+=t8W;var u3B=d9M;u3B+=Z2X;u3B+=l4W;u3B+=d3A.S0M;var C3B=z0M;C3B+=v2X;C3B+=d3A.q0M;C3B+=e0M;var self;Editor[C3B][u3B]=$[U4W](k6W,{},Editor[R7W][f2X],{"init":function(dte){var d3B=W5W;d3B+=d3A.c0M;d3B+=O0M;d3B+=d3A.k0M;self[r9W]=dte;self[d3B]();return self;},"open":function(dte,append,callback){var A2X="appendChild";var N2X="endChil";var S3B=V9M;S3B+=F3M;S3B+=N5M;S3B+=p2X;var G3B=V9M;G3B+=z0M;G3B+=s3M;G3B+=z8M;var a3B=d3A.q0M;a3B+=j2X;a3B+=N2X;a3B+=z0M;var V3B=V9M;V3B+=z0M;V3B+=s3M;V3B+=z8M;var P3B=z0M;P3B+=Y8M;P3B+=H9W;P3B+=N5M;var k3B=i2X;k3B+=d3A.c0M;k3B+=H2X;var b3B=m5W;b3B+=d3A.k0M;b3B+=d3A.S0M;self[b3B]=dte;$(self[y5W][k3B])[F9W]()[P3B]();self[V3B][q9W][a3B](append);self[y5W][q9W][A2X](self[G3B][E3M]);self[S3B](callback);},"close":function(dte,callback){var q3B=V9M;q3B+=z0M;q3B+=C5M;self[q3B]=dte;self[E2X](callback);},node:function(dte){return self[y5W][s4W][U1M];},"_init":function(){var g2X='visible';var R2X="visbility";var c2X="_read";var J2X="lope_Container";var Q2X="div.DTED_Env";var S2X="appendC";var G2X="oun";var V2X="hild";var P2X="ppendC";var k2X="idd";var d2X="kground";var C2X="BackgroundOpacity";var Y2X="_css";var w2X="grou";var L3B=m5W;L3B+=w1W;var y3B=e8M;y3B+=G6W;y3B+=w2X;y3B+=u5M;var e3B=X2X;e3B+=L8M;var o3B=Y2X;o3B+=C2X;var I3B=u2X;I3B+=f0W;I3B+=G6W;var l3B=e8M;l3B+=d2X;var M3B=b2X;M3B+=z8M;var B3B=N5M;B3B+=k2X;B3B+=d3A.S0M;B3B+=d3A.c0M;var r3B=X2X;r3B+=L8M;var W3B=b2X;W3B+=z8M;var D3B=d3A.q0M;D3B+=P2X;D3B+=V2X;var g3B=a2X;g3B+=e0M;var R3B=e8M;R3B+=y8M;R3B+=G2X;R3B+=z0M;var U3B=b2X;U3B+=z8M;var x3B=S2X;x3B+=q2X;x3B+=z0M;var c3B=Q2X;c3B+=d3A.S0M;c3B+=J2X;var J3B=V9M;J3B+=L1W;J3B+=z8M;var Q3B=c2X;Q3B+=e0M;if(self[Q3B]){return;}self[J3B][q9W]=$(c3B,self[y5W][s4W])[U1M];document[x2X][x3B](self[U3B][R3B]);document[g3B][D3B](self[W3B][s4W]);self[y5W][r3B][U2X][R2X]=B3B;self[M3B][l3B][U2X][x8M]=I3B;self[o3B]=$(self[y5W][e3B])[E0W](h5W);self[y5W][y3B][U2X][x8M]=w0W;self[L3B][O5W][U2X][R2X]=g2X;},"_show":function(callback){var J6X='click.DTED_Envelope';var Q6X="conte";var S6X="tml,";var V6X="owPaddi";var P6X="wind";var d6X="_cssBackgroundOpacity";var C6X="px";var A6X="opacity";var p6X="Row";var f6X="_findAttac";var t2X="eft";var O2X="marginL";var m2X="yle";var n2X="kgrou";var K2X="sty";var T2X="city";var s2X="opa";var y2X="ackgro";var e2X="roll";var o2X="indowSc";var I2X="click.DTED_Env";var l2X="ghtbox_Content_Wrapper";var M2X="D_L";var B2X="div.DTE";var r2X="click.DTED_Envel";var W2X="elope";var D2X="resize.DTED_Env";var z5B=D2X;z5B+=W2X;var m5B=e3M;m5B+=O0M;m5B+=d3A.c0M;m5B+=z0M;var s5B=r2X;s5B+=s3M;s5B+=y0M;var L5B=p9W;L5B+=u5M;var y5B=B2X;y5B+=M2X;y5B+=O0M;y5B+=l2X;var I5B=e3M;I5B+=O0M;I5B+=d3A.c0M;I5B+=z0M;var l5B=X2X;l5B+=L8M;var M5B=m5W;M5B+=w1W;var W5B=I2X;W5B+=W2X;var D5B=V9M;D5B+=z0M;D5B+=s3M;D5B+=z8M;var q5B=w8M;q5B+=o2X;q5B+=e2X;var S5B=V9M;S5B+=z0M;S5B+=w1W;var G5B=X2X;G5B+=L8M;var a5B=e3M;a5B+=D3M;a5B+=s3M;a5B+=A3W;var V5B=e3M;V5B+=y2X;V5B+=L2X;var P5B=m5W;P5B+=s3M;P5B+=z8M;var k5B=s2X;k5B+=T2X;var b5B=K2X;b5B+=E2W;var d5B=e3M;d5B+=H9W;d5B+=n2X;d5B+=u5M;var u5B=i9M;u5B+=m0M;var C5B=d3A.k0M;C5B+=s3M;C5B+=i9M;var Y5B=d3W;Y5B+=m2X;var X5B=H1W;X5B+=z2X;X5B+=d3A.k0M;var w5B=V9M;w5B+=z0M;w5B+=s3M;w5B+=z8M;var E5B=d3A.k0M;E5B+=s3M;E5B+=i9M;var A5B=F2X;A5B+=h2X;A5B+=d3A.k0M;var H5B=w8M;H5B+=T3M;H5B+=M5W;H5B+=E1W;var i5B=b2X;i5B+=z8M;var N5B=i9M;N5B+=m0M;var j5B=O2X;j5B+=t2X;var p5B=V9M;p5B+=z0M;p5B+=s3M;p5B+=z8M;var f5B=i9M;f5B+=m0M;var v5B=F3M;v5B+=J9M;v5B+=D3M;v5B+=d3A.S0M;var Z5B=Z6X;Z5B+=E1W;var t3B=V9M;t3B+=z0M;t3B+=w1W;var O3B=e3W;O3B+=v6X;var h3B=f6X;h3B+=N5M;h3B+=p6X;var F3B=e3M;F3B+=j6X;F3B+=v5M;F3B+=G6W;var z3B=Q8M;z3B+=N6X;z3B+=d3A.q0M;z3B+=e0M;var m3B=d3W;m3B+=m2X;var n3B=i6X;n3B+=g5W;n3B+=d3A.k0M;var K3B=d3W;K3B+=e0M;K3B+=E2W;var T3B=v5M;T3B+=c1W;T3B+=H6X;var s3B=V9M;s3B+=L1W;s3B+=z8M;var that=this;var formHeight;if(!callback){callback=function(){};}self[s3B][T3B][K3B][n3B]=J9W;var style=self[y5W][s4W][m3B];style[A6X]=U1M;style[z3B]=F3B;var targetRow=self[h3B]();var height=self[L9W]();var width=targetRow[E6X];style[O3B]=w0W;style[A6X]=R1M;self[t3B][Z5B][v5B][w6X]=width+f5B;self[p5B][s4W][U2X][j5B]=-(width/g1M)+N5B;self[i5B][H5B][U2X][X6X]=$(targetRow)[A5B]()[E5B]+targetRow[Y6X]+C6X;self[w5B][X5B][Y5B][C5B]=-R1M*height-s1M+u5B;self[y5W][d5B][b5B][k5B]=U1M;self[P5B][V5B][U2X][x8M]=a5B;$(self[y5W][G5B])[u6X]({'opacity':self[d6X]},b6X);$(self[S5B][s4W])[k6X]();if(self[y8W][q5B]){var R5B=P6X;R5B+=V6X;R5B+=w6W;var U5B=H1W;U5B+=d3A.Q0M;var x5B=d3A.k0M;x5B+=l4W;var c5B=a6X;c5B+=J1W;c5B+=d3A.k0M;var J5B=G6X;J5B+=C5M;var Q5B=N5M;Q5B+=S6X;Q5B+=e3M;Q5B+=q6X;$(Q5B)[J5B]({"scrollTop":$(targetRow)[c5B]()[x5B]+targetRow[Y6X]-self[U5B][R5B]},function(){$(self[y5W][q9W])[u6X]({"top":U1M},E0M,callback);});}else{var g5B=Q6X;g5B+=W3W;$(self[y5W][g5B])[u6X]({"top":U1M},E0M,callback);}$(self[D5B][E3M])[W9W](W5B,function(e){var B5B=r8M;B5B+=s3M;B5B+=J1W;var r5B=V9M;r5B+=z0M;r5B+=d3A.k0M;r5B+=d3A.S0M;self[r5B][B5B]();});$(self[M5B][l5B])[I5B](J6X,function(e){var x6X="gro";var c6X="back";var e5B=c6X;e5B+=x6X;e5B+=J5M;e5B+=u5M;var o5B=V9M;o5B+=z0M;o5B+=C5M;self[o5B][e5B]();});$(y5B,self[y5W][s4W])[L5B](s5B,function(e){var g6X='DTED_Envelope_Content_Wrapper';var R6X="rg";var K5B=N5M;K5B+=U6X;K5B+=F1W;var T5B=d4W;T5B+=R6X;T5B+=Y8M;if($(e[T5B])[K5B](g6X)){var n5B=e3M;n5B+=b9W;self[r9W][n5B]();}});$(window)[m5B](z5B,function(){var W6X="alc";var F5B=V9M;F5B+=H8W;F5B+=D6X;F5B+=W6X;self[F5B]();});},"_heightCalc":function(){var T6X="heightCalc";var s6X="tCal";var L6X="heigh";var e6X="owP";var o6X="wi";var l6X="eight";var B6X="ei";var r6X="outerH";var C9B=r6X;C9B+=B6X;C9B+=b1W;C9B+=y3W;var Y9B=P9W;Y9B+=v8W;var X9B=X9W;X9B+=d3A.S0M;var w9B=M6X;w9B+=V9W;var E9B=b2X;E9B+=z8M;var A9B=r6X;A9B+=l6X;var H9B=C8W;H9B+=d3A.q0M;H9B+=I6X;H9B+=T3M;var i9B=o6X;i9B+=u5M;i9B+=e6X;i9B+=y6X;var N9B=v5M;N9B+=s3M;N9B+=k9M;var j9B=N5M;j9B+=B6X;j9B+=g5W;j9B+=d3A.k0M;var p9B=i6X;p9B+=g5W;p9B+=d3A.k0M;var f9B=v5M;f9B+=s3M;f9B+=d3A.c0M;f9B+=H2X;var v9B=V9M;v9B+=z0M;v9B+=s3M;v9B+=z8M;var Z9B=C8W;Z9B+=d9W;Z9B+=T3M;var t5B=v5M;t5B+=L7W;t5B+=d3A.Q0M;var O5B=L6X;O5B+=s6X;O5B+=v5M;var h5B=H1W;h5B+=d3A.Q0M;var formHeight;formHeight=self[h5B][O5B]?self[t5B][T6X](self[y5W][Z9B]):$(self[v9B][f9B])[F9W]()[p9B]();var maxHeight=$(window)[j9B]()-self[N9B][i9B]*g1M-$(A8W,self[y5W][H9B])[K6X]()-$(E8W,self[y5W][s4W])[A9B]();$(n6X,self[E9B][w9B])[E0W](w8W,maxHeight);return $(self[X9B][W7W][Y9B])[C9B]();},"_hide":function(callback){var f4X="click.DTED_L";var v4X="_Content_Wrapp";var Z4X="DTED_Lightbox";var t6X="unb";var O6X="ED_Lig";var h6X="click.DT";var F6X="ghtbox";var z6X="ze.DTED_Li";var Q9B=m6X;Q9B+=O0M;Q9B+=z6X;Q9B+=F6X;var q9B=J5M;q9B+=d3A.c0M;q9B+=e3M;q9B+=j9W;var S9B=h6X;S9B+=O6X;S9B+=Z9M;var G9B=t6X;G9B+=O0M;G9B+=d3A.c0M;G9B+=z0M;var a9B=u8W;a9B+=Z4X;a9B+=v4X;a9B+=E1W;var V9B=f4X;V9B+=p4X;V9B+=b5W;var P9B=v5M;P9B+=j6X;P9B+=F3M;P9B+=d3A.S0M;var k9B=V9M;k9B+=L1W;k9B+=z8M;var d9B=j4X;d9B+=H6X;var u9B=d3A.q0M;u9B+=d3A.c0M;u9B+=Y9W;u9B+=C5M;if(!callback){callback=function(){};}$(self[y5W][q9W])[u9B]({"top":-(self[y5W][d9B][Y6X]+v0M)},E0M,function(){var b9B=V9M;b9B+=L1W;b9B+=z8M;$([self[y5W][s4W],self[b9B][O5W]])[N4X](b6X,callback);});$(self[k9B][P9B])[M8W](V9B);$(self[y5W][O5W])[M8W](D9W);$(a9B,self[y5W][s4W])[G9B](S9B);$(window)[q9B](Q9B);},"_findAttachRow":function(){var E4X="dataTabl";var H4X="act";var W9B=v5M;W9B+=T3M;W9B+=i4X;W9B+=d3A.S0M;var D9B=H4X;D9B+=O0M;D9B+=L7W;var g9B=V9M;g9B+=z0M;g9B+=d3A.k0M;g9B+=d3A.S0M;var U9B=A4X;U9B+=T9M;var x9B=X9W;x9B+=d3A.S0M;var c9B=j3W;c9B+=i9M;c9B+=O0M;var J9B=E4X;J9B+=d3A.S0M;var dt=new $[O2W][J9B][c9B](self[x9B][F3M][r3W]);if(self[y8W][w4X]===U9B){var R9B=N5M;R9B+=B8M;R9B+=z0M;R9B+=E1W;return dt[r3W]()[R9B]();}else if(self[g9B][F3M][D9B]===W9B){var B9B=N5M;B9B+=B8M;B9B+=g9M;var r9B=d4W;r9B+=X4X;return dt[r9B]()[B9B]();}else{var M9B=m5W;M9B+=d3A.k0M;M9B+=d3A.S0M;return dt[Y4X](self[M9B][F3M][C4X])[u4X]();}},"_dte":q7W,"_ready":d6W,"_cssBackgroundOpacity":R1M,"_dom":{"wrapper":$(l9B+I9B+d4X+Z7W)[U1M],"background":$(o9B)[U1M],"close":$(b4X)[U1M],"content":q7W}});self=Editor[e9B][k4X];self[y9B]={"windowPadding":v0M,"heightCalc":q7W,"attach":Y4X,"windowScroll":k6W};}());Editor[j1W][P4X]=function(cfg,after){var s4X="ift";var L4X="unsh";var y4X="rde";var B4X="editFiel";var r4X="tiRes";var D4X="'. A field already exists with this name";var g4X=" field '";var R4X="Error ";var U4X="a `name` option";var x4X=" adding field. The field requires ";var Q4X="Fiel";var S4X="sse";var a4X="verse";var H8B=s3M;H8B+=T3M;H8B+=f3M;H8B+=T3M;var L9B=V4X;L9B+=e0W;if($[L9B](cfg)){var T9B=D3M;T9B+=d9M;T9B+=x0W;T9B+=N5M;if(after!==undefined){var s9B=N8M;s9B+=a4X;cfg[s9B]();}for(var i=U1M;i<cfg[T9B];i++){this[P4X](cfg[i],after);}}else{var t9B=L0M;t9B+=d3A.S0M;t9B+=H2W;var O9B=G4X;O9B+=S4X;O9B+=F3M;var h9B=i2W;h9B+=H2W;var F9B=q4X;F9B+=Q4X;F9B+=z0M;var m9B=L0M;m9B+=J4X;var K9B=d3A.c0M;K9B+=d3A.q0M;K9B+=z8M;K9B+=d3A.S0M;var name=cfg[K9B];if(name===undefined){var n9B=c4X;n9B+=x4X;n9B+=U4X;throw n9B;}if(this[F3M][m9B][name]){var z9B=R4X;z9B+=y6X;z9B+=g4X;throw z9B+name+D4X;}this[W4X](F9B,cfg);var field=new Editor[h9B](cfg,this[O9B][t9B],this);if(this[F3M][Y5M]){var v8B=d8M;v8B+=r4X;v8B+=Y8M;var Z8B=B4X;Z8B+=n0M;var editFields=this[F3M][Z8B];field[v8B]();$[n7W](editFields,function(idSrc,edit){var l4X="omD";var M4X="valF";var val;if(edit[y4W]){var f8B=M4X;f8B+=T3M;f8B+=l4X;f8B+=I4W;val=field[f8B](edit[y4W]);}field[I4X](idSrc,val!==undefined?val:field[f2W]());});}this[F3M][o4X][name]=field;if(after===undefined){var j8B=i9M;j8B+=e4X;var p8B=s3M;p8B+=y4X;p8B+=T3M;this[F3M][p8B][j8B](name);}else if(after===q7W){var N8B=L4X;N8B+=s4X;this[F3M][T4X][N8B](name);}else{var i8B=n6W;i8B+=K4X;i8B+=e0M;var idx=$[i8B](after,this[F3M][T4X]);this[F3M][T4X][n4X](idx+R1M,U1M,name);}}this[m4X](this[H8B]());return this;};Editor[A8B][z4X]=function(newAjax){var w8B=F4X;w8B+=m0M;if(newAjax){var E8B=h4X;E8B+=d3A.q0M;E8B+=m0M;this[F3M][E8B]=newAjax;return this;}return this[F3M][w8B];};Editor[X8B][Y8B]=function(){var v7X="ground";var Z7X="nBack";var t4X="nct";var d8B=e3M;d8B+=D3M;d8B+=m8M;var u8B=O4X;u8B+=t4X;u8B+=O0M;u8B+=L7W;var C8B=s3M;C8B+=Z7X;C8B+=v7X;var onBackground=this[F3M][f7X][C8B];if(typeof onBackground===u8B){onBackground(this);}else if(onBackground===d8B){this[p7X]();}else if(onBackground===C5W){var b8B=r8M;b8B+=s3M;b8B+=J1W;this[b8B]();}else if(onBackground===Y5W){this[U3W]();}return this;};Editor[k8B][P8B]=function(){this[j7X]();return this;};Editor[V8B][N7X]=function(cells,fieldNames,show,opts){var u7X='individual';var w7X="inO";var E7X="isPla";var A7X="ainObject";var q8B=i7X;q8B+=e3M;q8B+=e3M;q8B+=E2W;var S8B=V9M;S8B+=U9M;var G8B=H7X;G8B+=A7X;var a8B=E7X;a8B+=w7X;a8B+=X7X;var that=this;if(this[Y7X](function(){that[N7X](cells,fieldNames,opts);})){return this;}if($[a8B](fieldNames)){opts=fieldNames;fieldNames=undefined;show=k6W;}else if(typeof fieldNames===C7X){show=fieldNames;fieldNames=undefined;opts=undefined;}if($[G8B](show)){opts=show;show=k6W;}if(show===undefined){show=k6W;}opts=$[U4W]({},this[F3M][X5W][N7X],opts);var editFields=this[W4X](u7X,cells,fieldNames);this[S8B](cells,editFields,q8B,opts,function(){var h7X='<div class="DTE_Processing_Indicator"><span></div>';var z7X="liner";var m7X="bg";var K7X='attach';var s7X="concat";var L7X="bubbleNodes";var y7X="bubblePosition";var e7X='resize.';var I7X="mOptions";var l7X="_fo";var r7X="div/></div>";var W7X="\"><";var D7X="div class=\"";var g7X="</d";var R7X="nte";var U7X="poi";var J7X="ldren";var Q7X="chi";var q7X="q";var G7X="sag";var V7X="lick";var Z2P=d3A.Q0M;Z2P+=s3M;Z2P+=d7X;var t8B=V9M;t8B+=K8M;t8B+=v5M;t8B+=b7X;var O8B=V9M;O8B+=k7X;O8B+=P7X;O8B+=C5M;var F8B=v5M;F8B+=V7X;var n8B=d3A.q0M;n8B+=z0M;n8B+=z0M;var s8B=d3A.k0M;s8B+=a7X;s8B+=d3A.S0M;var L8B=z8M;L8B+=U3M;L8B+=G7X;L8B+=d3A.S0M;var y8B=d3A.Q0M;y8B+=s3M;y8B+=T3M;y8B+=z8M;var e8B=q9M;e8B+=S7X;e8B+=d3A.c0M;e8B+=z0M;var o8B=z0M;o8B+=s3M;o8B+=z8M;var I8B=M5W;I8B+=d3A.S0M;I8B+=d3A.c0M;I8B+=z0M;var l8B=d3A.S0M;l8B+=q7X;var M8B=Q7X;M8B+=J7X;var r8B=c7X;r8B+=x7X;var W8B=M6W;W8B+=Q2W;W8B+=F6W;var D8B=U7X;D8B+=R7X;D8B+=T3M;var g8B=g7X;g8B+=G5W;var R8B=M6W;R8B+=l6W;var U8B=W6W;U8B+=D7X;var x8B=W7X;x8B+=r7X;var c8B=s3M;c8B+=d3A.c0M;var J8B=V9M;J8B+=B7X;J8B+=M7X;var Q8B=l7X;Q8B+=T3M;Q8B+=I7X;var namespace=that[Q8B](opts);var ret=that[J8B](o7X);if(!ret){return that;}$(window)[c8B](e7X+namespace,function(){that[y7X]();});var nodes=[];that[F3M][L7X]=nodes[s7X][T7X](nodes,_pluck(editFields,K7X));var classes=that[W1W][N7X];var background=$(n7X+classes[m7X]+x8B);var container=$(U8B+classes[s4W]+z4W+n7X+classes[z7X]+z4W+n7X+classes[r3W]+R8B+n7X+classes[E3M]+F7X+h7X+Z7W+g8B+n7X+classes[D8B]+W8B+r8B);if(show){var B8B=e3M;B8B+=s3M;B8B+=z0M;B8B+=e0M;container[g8W](x9W);background[g8W](B8B);}var liner=container[M8B]()[l8B](U1M);var table=liner[F9W]();var close=table[F9W]();liner[I8B](that[o8B][O7X]);table[e8B](that[W7W][y8B]);if(opts[L8B]){liner[J7W](that[W7W][t7X]);}if(opts[s8B]){var T8B=z0M;T8B+=s3M;T8B+=z8M;liner[J7W](that[T8B][Z1X]);}if(opts[v1X]){var K8B=d3A.q0M;K8B+=I6X;K8B+=u5M;table[K8B](that[W7W][v1X]);}var pair=$()[P4X](container)[n8B](background);that[f1X](function(submitComplete){that[r8W](pair,{opacity:U1M},function(){var p1X="ize";var z8B=m6X;z8B+=p1X;z8B+=g0M;var m8B=s3M;m8B+=d3A.Q0M;m8B+=d3A.Q0M;pair[B8W]();$(window)[m8B](z8B+namespace);that[j1X]();});});background[F8B](function(){that[p7X]();});close[N1X](function(){var h8B=V9M;h8B+=v5M;h8B+=n8M;that[h8B]();});that[y7X]();that[O8B](pair,{opacity:R1M});that[t8B](that[F3M][i1X],opts[Z2P]);that[H1X](o7X);});return this;};Editor[v2P][f2P]=function(){var Q1X='left';var S1X='below';var G1X="moveCl";var a1X="bottom";var P1X="Cl";var b1X="outerWidth";var d1X="right";var C1X="div.DTE_Bubbl";var Y1X="ubble_Liner";var X1X="div.DTE_B";var w1X="eNodes";var L1M=15;var S2P=F2X;S2P+=h2X;S2P+=d3A.k0M;var G2P=d1W;G2P+=b1W;G2P+=k1W;var a2P=e3M;a2P+=s3M;a2P+=A1X;a2P+=w1W;var V2P=E2W;V2P+=d3A.c0M;V2P+=x0W;V2P+=N5M;var P2P=T3M;P2P+=O0M;P2P+=b1W;P2P+=y3W;var k2P=D3M;k2P+=d3A.S0M;k2P+=w6W;k2P+=k1W;var b2P=E2W;b2P+=d3A.Q0M;b2P+=d3A.k0M;var d2P=D3M;d2P+=N3W;d2P+=d3A.k0M;d2P+=N5M;var u2P=d3A.k0M;u2P+=s3M;u2P+=i9M;var i2P=B8M;i2P+=v5M;i2P+=N5M;var N2P=E1X;N2P+=w1X;var j2P=X1X;j2P+=Y1X;var p2P=C1X;p2P+=d3A.S0M;var wrapper=$(p2P),liner=$(j2P),nodes=this[F3M][N2P];var position={top:U1M,left:U1M,right:U1M,bottom:U1M};$[i2P](nodes,function(i,node){var C2P=d3A.k0M;C2P+=s3M;C2P+=i9M;var Y2P=e3M;Y2P+=I8M;Y2P+=X9M;Y2P+=z8M;var X2P=T3M;X2P+=p4X;var w2P=D3M;w2P+=d3A.S0M;w2P+=d3A.Q0M;w2P+=d3A.k0M;var E2P=d3A.k0M;E2P+=s3M;E2P+=i9M;var A2P=b1W;A2P+=d3A.S0M;A2P+=d3A.k0M;var H2P=a6X;H2P+=Z5W;var pos=$(node)[H2P]();node=$(node)[A2P](U1M);position[X6X]+=pos[E2P];position[u1X]+=pos[w2P];position[X2P]+=pos[u1X]+node[E6X];position[Y2P]+=pos[C2P]+node[Y6X];});position[u2P]/=nodes[d2P];position[b2P]/=nodes[k2P];position[P2P]/=nodes[V2P];position[a2P]/=nodes[h3W];var top=position[X6X],left=(position[u1X]+position[d1X])/g1M,width=liner[b1X](),visLeft=left-width/g1M,visRight=visLeft+width,docWidth=$(window)[w6X](),padding=L1M,classes=this[W1W][N7X];wrapper[E0W]({top:top,left:left});if(liner[G2P]&&liner[S2P]()[X6X]<U1M){var Q2P=k1X;Q2P+=D3M;Q2P+=s3M;Q2P+=w8M;var q2P=P4X;q2P+=P1X;q2P+=B1W;wrapper[E0W](V1X,position[a1X])[q2P](Q2P);}else{var J2P=N8M;J2P+=G1X;J2P+=B1W;wrapper[J2P](S1X);}if(visRight+padding>docWidth){var c2P=D3M;c2P+=d3A.S0M;c2P+=q1X;var diff=visRight-docWidth;liner[E0W](c2P,visLeft<padding?-(visLeft-padding):-(diff+padding));}else{liner[E0W](Q1X,visLeft<padding?-(visLeft-padding):U1M);}return this;};Editor[j1W][v1X]=function(buttons){var g2P=J1X;g2P+=e0M;var R2P=z0M;R2P+=s3M;R2P+=z8M;var that=this;if(buttons===c1X){var U2P=d3A.q0M;U2P+=v5M;U2P+=d3A.k0M;U2P+=B0M;var x2P=O0M;x2P+=d3A.G0M;x2P+=t0M;x2P+=d3A.c0M;buttons=[{text:this[x2P][this[F3M][U2P]][U3W],action:function(){this[U3W]();}}];}else if(!$[x1X](buttons)){buttons=[buttons];}$(this[R2P][v1X])[g2P]();$[n7W](buttons,function(i,btn){var K1X='keypress';var s1X="tabIndex";var L1X='tabindex';var o1X='<button/>';var B1X="labe";var r1X="cti";var D1X="ndex";var g1X="tabI";var L2P=z0M;L2P+=s3M;L2P+=z8M;var e2P=s3M;e2P+=d3A.c0M;var I2P=U1X;I2P+=R1X;var l2P=g1X;l2P+=D1X;var M2P=y3W;M2P+=z8M;M2P+=D3M;var B2P=W1X;B2P+=d3A.S0M;B2P+=F3M;var r2P=d3A.q0M;r2P+=r1X;r2P+=L7W;var W2P=B1X;W2P+=D3M;if(typeof btn===z0W){btn={text:btn,action:function(){var D2P=M1X;D2P+=l1X;D2P+=d3A.k0M;this[D2P]();}};}var text=btn[I1X]||btn[W2P];var action=btn[r2P]||btn[O2W];$(o1X,{'class':that[B2P][e1X][w5W]+(btn[n4W]?T4W+btn[n4W]:B2W)})[M2P](typeof text===m7W?text(that):text||B2W)[y1X](L1X,btn[l2P]!==undefined?btn[s1X]:U1M)[L7W](I2P,function(e){if(e[T1X]===e1M&&action){action[p1W](that);}})[L7W](K1X,function(e){var m1X="tDefault";var n1X="preven";if(e[T1X]===e1M){var o2P=n1X;o2P+=m1X;e[o2P]();}})[e2P](s7W,function(e){e[z1X]();if(action){var y2P=v5M;y2P+=d3A.q0M;y2P+=D3M;y2P+=D3M;action[y2P](that);}})[g8W](that[L2P][v1X]);});return this;};Editor[j1W][s2P]=function(fieldName){var p0X="ldNam";var t1X="destroy";var O1X="rd";var T2P=d3A.Q0M;T2P+=F1X;var that=this;var fields=this[F3M][T2P];if(typeof fieldName===z0W){var z2P=N6X;z2P+=h1X;z2P+=d3A.S0M;var m2P=s3M;m2P+=O1X;m2P+=d3A.S0M;m2P+=T3M;var n2P=s3M;n2P+=O1X;n2P+=d3A.S0M;n2P+=T3M;var K2P=L0M;K2P+=d3A.S0M;K2P+=D3M;K2P+=z0M;that[K2P](fieldName)[t1X]();delete fields[fieldName];var orderIdx=$[Z0X](fieldName,this[F3M][n2P]);this[F3M][m2P][z2P](orderIdx,R1M);var includeIdx=$[Z0X](fieldName,this[F3M][i1X]);if(includeIdx!==-R1M){var F2P=v0X;F2P+=f0X;this[F3M][F2P][n4X](includeIdx,R1M);}}else{var O2P=V9M;O2P+=V0W;O2P+=p0X;O2P+=U3M;var h2P=B8M;h2P+=v5M;h2P+=N5M;$[h2P](this[O2P](fieldName),function(i,name){var j0X="clea";var t2P=j0X;t2P+=T3M;that[t2P](name);});}return this;};Editor[j1W][E3M]=function(){var Z6P=V9M;Z6P+=v5M;Z6P+=N0X;Z6P+=d3A.S0M;this[Z6P](d6W);return this;};Editor[j1W][v6P]=function(arg1,arg2,arg3,arg4){var S0X='initCreate';var H0X="playReor";var i0X="_dis";var C6P=L0M;C6P+=d3A.S0M;C6P+=H2W;C6P+=F3M;var Y6P=i0X;Y6P+=H0X;Y6P+=g9M;var X6P=A0X;X6P+=T8M;var w6P=d3A.Q0M;w6P+=s3M;w6P+=T3M;w6P+=z8M;var E6P=z0M;E6P+=w1W;var A6P=E0X;A6P+=T3M;var H6P=w0X;H6P+=d3A.q0M;H6P+=C5M;var i6P=P7X;i6P+=n6W;var N6P=X0X;N6P+=f3M;var p6P=Y0X;p6P+=z8M;p6P+=k1X;p6P+=T3M;var f6P=h7W;f6P+=O0M;f6P+=q8W;var that=this;var fields=this[F3M][o4X];var count=R1M;if(this[f6P](function(){that[C0X](arg1,arg2,arg3,arg4);})){return this;}if(typeof arg1===p6P){count=arg1;arg1=arg2;arg2=arg3;}this[F3M][u0X]={};for(var i=U1M;i<count;i++){var j6P=d0X;j6P+=F3M;this[F3M][u0X][i]={fields:this[F3M][j6P]};}var argOpts=this[b0X](arg1,arg2,arg3,arg4);this[F3M][N6P]=i6P;this[F3M][k0X]=H6P;this[F3M][A6P]=q7W;this[E6P][w6P][U2X][X6P]=s0W;this[P0X]();this[Y6P](this[C6P]());$[n7W](fields,function(name,field){var a0X="tiSet";field[V0X]();for(var i=U1M;i<count;i++){var d6P=z0M;d6P+=d3A.S0M;d6P+=d3A.Q0M;var u6P=d8M;u6P+=a0X;field[u6P](i,field[d6P]());}field[Z5W](field[f2W]());});this[G0X](S0X,q7W,function(){var q0X="ormOptions";var b6P=H4W;b6P+=q0X;that[Q0X]();that[b6P](argOpts[M7W]);argOpts[J0X]();});return this;};Editor[k6P][c0X]=function(parent){var U0X='.edep';var x0X="sAr";var G6P=s3M;G6P+=d3A.Q0M;G6P+=d3A.Q0M;var a6P=d3A.Q0M;a6P+=O0M;a6P+=G8M;a6P+=z0M;var P6P=O0M;P6P+=x0X;P6P+=e0W;if($[P6P](parent)){var V6P=d1W;V6P+=b1W;V6P+=d3A.k0M;V6P+=N5M;for(var i=U1M,ien=parent[V6P];i<ien;i++){this[c0X](parent[i]);}return this;}var field=this[a6P](parent);$(field[u4X]())[G6P](U0X);return this;};Editor[S6P][R0X]=function(parent,url,opts){var B0X="OST";var r0X="P";var W0X="jso";var g0X=".e";var I6P=g0X;I6P+=z0M;I6P+=m0W;var l6P=D0X;l6P+=d3A.S0M;l6P+=d3A.c0M;l6P+=d3A.k0M;var M6P=s3M;M6P+=d3A.c0M;var c6P=W0X;c6P+=d3A.c0M;var J6P=r0X;J6P+=B0X;var Q6P=V0W;Q6P+=H2W;if($[x1X](parent)){for(var i=U1M,ien=parent[h3W];i<ien;i++){var q6P=z0M;q6P+=S7X;q6P+=M0X;q6P+=W3W;this[q6P](parent[i],url,opts);}return this;}var that=this;var field=this[Q6P](parent);var ajaxOpts={type:J6P,dataType:c6P};opts=$[U4W]({event:l0X,data:q7W,preUpdate:q7W,postUpdate:q7W},opts);var update=function(json){var O0X="postUpdate";var h0X='enable';var F0X='show';var z0X='hide';var m0X='error';var n0X='message';var K0X='update';var s0X="preUpdate";var y0X="eU";var o0X="ostUpdat";var I0X="essing";var B6P=L0W;B6P+=I0X;var r6P=i9M;r6P+=o0X;r6P+=d3A.S0M;var D6P=Q8M;D6P+=F3M;D6P+=e0X;D6P+=d3A.S0M;var U6P=e7W;U6P+=d3A.q0M;U6P+=D3M;var x6P=q9M;x6P+=y0X;x6P+=i9M;x6P+=L0X;if(opts[x6P]){opts[s0X](json);}$[n7W]({labels:T0X,options:K0X,values:U6P,messages:n0X,errors:m0X},function(jsonProp,fieldFn){if(json[jsonProp]){var R6P=d3A.S0M;R6P+=d3A.q0M;R6P+=v5M;R6P+=N5M;$[R6P](json[jsonProp],function(field,val){var g6P=d3A.Q0M;g6P+=K0M;g6P+=z0M;that[g6P](field)[fieldFn](val);});}});$[n7W]([z0X,F0X,h0X,D6P],function(i,key){if(json[key]){var W6P=G6X;W6P+=d3A.k0M;W6P+=d3A.S0M;that[key](json[key],json[W6P]);}});if(opts[r6P]){opts[O0X](json);}field[B6P](d6W);};$(field[u4X]())[M6P](opts[l6P]+I6P,function(e){var f3X="values";var y6P=T3M;y6P+=t0X;var e6P=T3M;e6P+=s3M;e6P+=w8M;var o6P=L0M;o6P+=d3A.c0M;o6P+=z0M;if($(field[u4X]())[o6P](e[I9W])[h3W]===U1M){return;}field[V7W](k6W);var data={};data[Z3X]=that[F3M][u0X]?_pluck(that[F3M][u0X],v3X):q7W;data[e6P]=data[Z3X]?data[y6P][U1M]:q7W;data[f3X]=that[U0W]();if(opts[y4W]){var ret=opts[y4W](data);if(ret){var L6P=u4W;L6P+=d3A.k0M;L6P+=d3A.q0M;opts[L6P]=ret;}}if(typeof url===m7W){var o=url(field[U0W](),data,update);if(o){var T6P=p3X;T6P+=j3X;var s6P=d3A.k0M;s6P+=N5M;s6P+=d3A.S0M;s6P+=d3A.c0M;if(typeof o===u6W&&typeof o[s6P]===T6P){var K6P=d3A.k0M;K6P+=N5M;K6P+=d9M;o[K6P](function(resolved){if(resolved){update(resolved);}});}else{update(o);}}}else{var z6P=d3A.S0M;z6P+=a4W;z6P+=d9M;z6P+=z0M;if($[N3X](url)){var n6P=E5M;n6P+=u5M;$[n6P](ajaxOpts,url);}else{var m6P=m8M;m6P+=D3M;ajaxOpts[m6P]=url;}$[z4X]($[z6P](ajaxOpts,{url:url,data:data,success:update}));}});return this;};Editor[F6P][h6P]=function(){var d3X='.dte';var u3X="dest";var w3X="late";var E3X="temp";var A3X="oller";var H3X="yContr";var i3X="ispla";var p4P=z0M;p4P+=U3M;p4P+=g8M;var f4P=z0M;f4P+=i3X;f4P+=H3X;f4P+=A3X;var Z4P=E3X;Z4P+=w3X;var t6P=r8M;t6P+=d3A.S0M;t6P+=d3A.q0M;t6P+=T3M;var O6P=z0M;O6P+=O0M;O6P+=u1W;O6P+=X3X;if(this[F3M][O6P]){this[E3M]();}this[t6P]();if(this[F3M][Z4P]){var v4P=z7W;v4P+=Y3X;$(x9W)[v4P](this[F3M][C3X]);}var controller=this[F3M][f4P];if(controller[p4P]){var j4P=u3X;j4P+=b3W;controller[j4P](this);}$(document)[a6X](d3X+this[F3M][b3X]);this[W7W]=q7W;this[F3M]=q7W;};Editor[N4P][k3X]=function(name){var i4P=B8M;i4P+=X0W;var that=this;$[i4P](this[P3X](name),function(i,n){var H4P=z0M;H4P+=O0M;H4P+=F3M;H4P+=G3W;that[d0X](n)[H4P]();});return this;};Editor[j1W][x8M]=function(show){if(show===undefined){return this[F3M][V3X];}return this[show?a3X:C5W]();};Editor[A4P][E4P]=function(){var w4P=L0M;w4P+=J4X;return $[G3X](this[F3M][w4P],function(field,name){return field[V3X]()?name:q7W;});};Editor[j1W][X4P]=function(){var q3X="ler";var S3X="splayContro";var Y4P=Q8M;Y4P+=S3X;Y4P+=D3M;Y4P+=q3X;return this[F3M][Y4P][u4X](this);};Editor[j1W][U9M]=function(items,arg1,arg2,arg3,arg4){var Q3X="taSource";var d4P=W9M;d4P+=Q3X;var u4P=V9M;u4P+=X5M;u4P+=O0M;u4P+=d3A.k0M;var that=this;if(this[Y7X](function(){var C4P=d3A.S0M;C4P+=Q8M;C4P+=d3A.k0M;that[C4P](items,arg1,arg2,arg3,arg4);})){return this;}var argOpts=this[b0X](arg1,arg2,arg3,arg4);this[u4P](items,this[d4P](J3X,items),c3X,argOpts[M7W],function(){var U3X="eO";var x3X="may";var k4P=x3X;k4P+=e3M;k4P+=U3X;k4P+=R3X;var b4P=s3M;b4P+=i9M;b4P+=d3A.k0M;b4P+=F3M;that[Q0X]();that[g3X](argOpts[b4P]);argOpts[k4P]();});return this;};Editor[j1W][D3X]=function(name){var W3X="eldNam";var P4P=H4W;P4P+=O0M;P4P+=W3X;P4P+=U3M;var that=this;$[n7W](this[P4P](name),function(i,n){var V4P=d3A.Q0M;V4P+=r3X;V4P+=D3M;V4P+=z0M;that[V4P](n)[D3X]();});return this;};Editor[a4P][l1W]=function(name,msg){var M3X="Er";var B3X="global";if(msg===undefined){var G4P=B3X;G4P+=M3X;G4P+=I1W;this[l3X](this[W7W][O7X],name);this[F3M][G4P]=name;}else{var S4P=E1W;S4P+=T3M;S4P+=s3M;S4P+=T3M;this[d0X](name)[S4P](msg);}return this;};Editor[q4P][Q4P]=function(name){var o3X="nown field name -";var I3X="Unk";var J4P=L0M;J4P+=J4X;var fields=this[F3M][J4P];if(!fields[name]){var c4P=I3X;c4P+=o3X;c4P+=Q2W;throw c4P+name;}return fields[name];};Editor[j1W][o4X]=function(){return $[G3X](this[F3M][o4X],function(field,name){return name;});};Editor[x4P][U4P]=_api_file;Editor[R4P][g4P]=_api_files;Editor[D4P][e3X]=function(name){var r4P=L0M;r4P+=G8M;r4P+=z0M;var that=this;if(!name){name=this[o4X]();}if($[x1X](name)){var out={};$[n7W](name,function(i,n){var W4P=d3A.Q0M;W4P+=O0M;W4P+=d3A.S0M;W4P+=H2W;out[n]=that[W4P](n)[e3X]();});return out;}return this[r4P](name)[e3X]();};Editor[j1W][y3X]=function(names,animate){var that=this;$[n7W](this[P3X](names),function(i,n){that[d0X](n)[y3X](animate);});return this;};Editor[j1W][B4P]=function(includeHash){var L3X="Fields";var l4P=U9M;l4P+=L3X;var M4P=z8M;M4P+=z7W;return $[M4P](this[F3M][l4P],function(edit,idSrc){return includeHash===k6W?s3X+idSrc:idSrc;});};Editor[j1W][T3X]=function(inNames){var m3X="globa";var n3X="eldNa";var K3X="_fi";var e4P=K3X;e4P+=n3X;e4P+=i3M;e4P+=F3M;var o4P=m3X;o4P+=D3M;o4P+=n3M;o4P+=z3X;var I4P=L1W;I4P+=z8M;var formError=$(this[I4P][O7X]);if(this[F3M][o4P]){return k6W;}var names=this[e4P](inNames);for(var i=U1M,ien=names[h3W];i<ien;i++){var y4P=n6W;y4P+=c4X;if(this[d0X](names[i])[y4P]()){return k6W;}}return d6W;};Editor[L4P][s4P]=function(cell,fieldName,opts){var N5X="inline";var p5X="sPlainObj";var v5X="ptio";var Z5X="nline";var t3X="dual";var O3X="divi";var F3X="iv.DTE_";var t4P=V9M;t4P+=d3A.k0M;t4P+=D4W;t4P+=e0M;var O4P=z0M;O4P+=F3X;O4P+=i2W;O4P+=H2W;var z4P=G4X;z4P+=F3M;z4P+=h3X;var m4P=n6W;m4P+=O3X;m4P+=t3X;var n4P=O0M;n4P+=Z5X;var K4P=H5M;K4P+=v5X;K4P+=f5X;var T4P=O0M;T4P+=p5X;T4P+=j5X;var that=this;if($[T4P](fieldName)){opts=fieldName;fieldName=undefined;}opts=$[U4W]({},this[F3M][K4P][n4P],opts);var editFields=this[W4X](m4P,cell,fieldName);var node,field;var countOuter=U1M,countInner;var closed=d6W;var classes=this[z4P][N5X];$[n7W](editFields,function(i,editField){var H5X='Cannot edit more than one row inline at a time';var i5X="tta";var F4P=d3A.q0M;F4P+=i5X;F4P+=v5M;F4P+=N5M;if(countOuter>U1M){throw H5X;}node=$(editField[F4P][U1M]);countInner=U1M;$[n7W](editField[A5X],function(j,f){var X5X="a time";var w5X="d inline at ";var E5X="Cannot edit more than one fiel";if(countInner>U1M){var h4P=E5X;h4P+=w5X;h4P+=X5X;throw h4P;}field=f;countInner++;});countOuter++;});if($(O4P,node)[h3W]){return this;}if(this[t4P](function(){var Z7P=n6W;Z7P+=Y5X;Z7P+=d3A.S0M;that[Z7P](cell,fieldName,opts);})){return this;}this[C5X](cell,editFields,u5X,opts,function(){var R5X='<div class="DTE_Processing_Indicator"><span/></div>';var x5X="tents";var c5X="iv class=\"";var J5X="s=";var Q5X=" style=\"width:";var S5X="iv";var G5X="mE";var V5X="tons";var k5X="eg";var b5X="seR";var V7P=d5X;V7P+=j6X;V7P+=b5X;V7P+=k5X;var b7P=P5X;b7P+=V5X;var d7P=a5X;d7P+=G5X;d7P+=z3X;var u7P=d3A.q0M;u7P+=i9M;u7P+=Y3X;var C7P=d3A.c0M;C7P+=s3M;C7P+=z0M;C7P+=d3A.S0M;var Y7P=D3M;Y7P+=n6W;Y7P+=d3A.S0M;Y7P+=T3M;var X7P=z0M;X7P+=S5X;X7P+=g0M;var w7P=i7X;w7P+=q5X;var E7P=i9M;E7P+=m0M;E7P+=M6W;E7P+=l6W;var A7P=M6W;A7P+=Q5X;var H7P=D3M;H7P+=O0M;H7P+=C1W;H7P+=T3M;var i7P=s8W;i7P+=J5X;i7P+=M6W;var N7P=M6W;N7P+=l6W;var j7P=w8M;j7P+=T3M;j7P+=M5W;j7P+=E1W;var p7P=k5W;p7P+=c5X;var f7P=d3A.q0M;f7P+=i9M;f7P+=R3X;f7P+=z0M;var v7P=i2X;v7P+=d3A.c0M;v7P+=x5X;var namespace=that[g3X](opts);var ret=that[U5X](u5X);if(!ret){return that;}var children=node[v7P]()[B8W]();node[f7P]($(p7P+classes[j7P]+N7P+i7P+classes[H7P]+A7P+node[w6X]()+E7P+R5X+Z7W+n7X+classes[w7P]+g5X+Z7W));node[D5X](X7P+classes[Y7P][F0W](/ /g,W5X))[k0W](field[C7P]())[u7P](that[W7W][d7P]);if(opts[b7P]){var P7P=N8M;P7P+=r5X;var k7P=z0M;k7P+=O0M;k7P+=e7W;k7P+=g0M;node[D5X](k7P+classes[v1X][P7P](/ /g,W5X))[k0W](that[W7W][v1X]);}that[V7P](function(submitComplete,action){var M5X="contents";var a7P=d3A.S0M;a7P+=B5X;closed=k6W;$(document)[a6X](s7W+namespace);if(!submitComplete||action!==a7P){var G7P=z0M;G7P+=Y8M;G7P+=H9W;G7P+=N5M;node[M5X]()[G7P]();node[k0W](children);}that[j1X]();});setTimeout(function(){var q7P=r8M;q7P+=h1X;q7P+=G6W;var S7P=s3M;S7P+=d3A.c0M;if(closed){return;}$(document)[S7P](q7P+namespace,function(e){var T5X="addBa";var s5X="Back";var L5X="lf";var y5X="dSe";var e5X="_type";var o5X="rget";var l5X="nA";var g7P=O0M;g7P+=l5X;g7P+=I5X;var R7P=d3A.k0M;R7P+=d3A.q0M;R7P+=o5X;var U7P=s3M;U7P+=w8M;U7P+=f5X;var x7P=e5X;x7P+=O7W;var c7P=R3W;c7P+=y5X;c7P+=L5X;var J7P=T9M;J7P+=z0M;J7P+=s5X;var Q7P=T5X;Q7P+=v5M;Q7P+=G6W;var back=$[O2W][Q7P]?J7P:c7P;if(!field[x7P](U7P,e[R7P])&&$[g7P](node[U1M],$(e[I9W])[K5X]()[back]())===-R1M){that[p7X]();}});},U1M);that[n5X]([field],opts[y7W]);that[H1X](u5X);});return this;};Editor[j1W][b7W]=function(name,msg){var m5X="essag";if(msg===undefined){var W7P=L1W;W7P+=z8M;var D7P=V9M;D7P+=z8M;D7P+=m5X;D7P+=d3A.S0M;this[D7P](this[W7P][t7X],name);}else{var r7P=L0M;r7P+=d3A.S0M;r7P+=D3M;r7P+=z0M;this[r7P](name)[b7W](msg);}return this;};Editor[j1W][Y5M]=function(mode){var h5X='Changing from create mode is not supported';var F5X="Not currently in an editing mod";var z5X="ctio";var l7P=v5M;l7P+=T3M;l7P+=d3A.S0M;l7P+=w9W;if(!mode){var B7P=d3A.q0M;B7P+=z5X;B7P+=d3A.c0M;return this[F3M][B7P];}if(!this[F3M][k0X]){var M7P=F5X;M7P+=d3A.S0M;throw new Error(M7P);}else if(this[F3M][k0X]===S7W&&mode!==l7P){throw new Error(h5X);}this[F3M][k0X]=mode;return this;};Editor[j1W][C4X]=function(){var O5X="ifier";var I7P=z8M;I7P+=s3M;I7P+=z0M;I7P+=O5X;return this[F3M][I7P];};Editor[j1W][t5X]=function(fieldNames){var v9X="isA";var Z9X="Ge";var s7P=d8M;s7P+=g0W;s7P+=Z9X;s7P+=d3A.k0M;var L7P=S6W;L7P+=z0M;var e7P=v9X;e7P+=I5X;var that=this;if(fieldNames===undefined){var o7P=V0W;o7P+=H2W;o7P+=F3M;fieldNames=this[o7P]();}if($[e7P](fieldNames)){var out={};$[n7W](fieldNames,function(i,name){var y7P=L0M;y7P+=G8M;y7P+=z0M;out[name]=that[y7P](name)[t5X]();});return out;}return this[L7P](fieldNames)[s7P]();};Editor[j1W][T7P]=function(fieldNames,val){var N9X="multiSe";var p9X="Obj";var f9X="isPlain";var K7P=f9X;K7P+=p9X;K7P+=j5X;var that=this;if($[K7P](fieldNames)&&val===undefined){var n7P=d3A.S0M;n7P+=j9X;$[n7P](fieldNames,function(name,value){that[d0X](name)[I4X](value);});}else{var z7P=N9X;z7P+=d3A.k0M;var m7P=d3A.Q0M;m7P+=r3X;m7P+=H2W;this[m7P](fieldNames)[z7P](val);}return this;};Editor[j1W][u4X]=function(name){var h7P=V0W;h7P+=D3M;h7P+=z0M;var that=this;if(!name){name=this[T4X]();}return $[x1X](name)?$[G3X](name,function(n){var F7P=V0W;F7P+=D3M;F7P+=z0M;return that[F7P](n)[u4X]();}):this[h7P](name)[u4X]();};Editor[O7P][a6X]=function(name,fn){var H9X="ame";var i9X="_eventN";var t7P=i9X;t7P+=H9X;$(this)[a6X](this[t7P](name),fn);return this;};Editor[j1W][L7W]=function(name,fn){var Z1P=s3M;Z1P+=d3A.c0M;$(this)[Z1P](this[A9X](name),fn);return this;};Editor[v1P][o3W]=function(name,fn){var f1P=G0X;f1P+=E9X;$(this)[o3W](this[f1P](name),fn);return this;};Editor[p1P][M7X]=function(){var X9X="oseReg";var w9X="splayController";var E1P=z0M;E1P+=s3M;E1P+=z8M;var A1P=Q8M;A1P+=w9X;var j1P=d5X;j1P+=D3M;j1P+=X9X;var that=this;this[m4X]();this[j1P](function(submitComplete){var Y9X="isplayController";var i1P=v5M;i1P+=j6X;i1P+=F3M;i1P+=d3A.S0M;var N1P=z0M;N1P+=Y9X;that[F3M][N1P][i1P](that,function(){var u9X="ynamicInfo";var C9X="clearD";var H1P=V9M;H1P+=C9X;H1P+=u9X;that[H1P]();});});var ret=this[U5X](c3X);if(!ret){return this;}this[F3M][A1P][M7X](this,this[E1P][s4W],function(){var w1P=I0M;w1P+=g9M;that[n5X]($[G3X](that[F3M][w1P],function(name){var X1P=d0X;X1P+=F3M;return that[F3M][X1P][name];}),that[F3M][f7X][y7W]);});this[H1X](c3X);return this;};Editor[j1W][Y1P]=function(set){var J9X="or ordering.";var Q9X="no additional fields, must be provided f";var q9X="All fields, and ";var a9X="sort";var k9X="slic";var b9X="sli";var G1P=I0M;G1P+=z0M;G1P+=d3A.S0M;G1P+=T3M;var V1P=d9X;V1P+=n6W;var P1P=b9X;P1P+=v5M;P1P+=d3A.S0M;var k1P=k9X;k1P+=d3A.S0M;var b1P=I0M;b1P+=z0M;b1P+=d3A.S0M;b1P+=T3M;var C1P=D3M;C1P+=d9M;C1P+=X6W;if(!set){return this[F3M][T4X];}if(arguments[C1P]&&!$[x1X](set)){var d1P=j5W;d1P+=D3M;var u1P=S9M;u1P+=P9X;set=Array[u1P][V9X][d1P](arguments);}if(this[F3M][b1P][k1P]()[a9X]()[G9X](S9X)!==set[P1P]()[a9X]()[V1P](S9X)){var a1P=q9X;a1P+=Q9X;a1P+=J9X;throw a1P;}$[U4W](this[F3M][G1P],set);this[m4X]();return this;};Editor[j1W][c9X]=function(items,arg1,arg2,arg3,arg4){var g9X='initRemove';var R9X="Arg";var U9X="_crud";var U1P=d3A.c0M;U1P+=s3M;U1P+=z0M;U1P+=d3A.S0M;var x1P=d3A.c0M;x1P+=s3M;x1P+=C1W;var c1P=K8M;c1P+=x9X;var J1P=E0X;J1P+=T3M;var Q1P=U9X;Q1P+=R9X;Q1P+=F3M;var q1P=T1W;q1P+=k1W;var S1P=V9M;S1P+=d3A.k0M;S1P+=O0M;S1P+=q8W;var that=this;if(this[S1P](function(){that[c9X](items,arg1,arg2,arg3,arg4);})){return this;}if(items[q1P]===undefined){items=[items];}var argOpts=this[Q1P](arg1,arg2,arg3,arg4);var editFields=this[W4X](J3X,items);this[F3M][k0X]=c9X;this[F3M][J1P]=items;this[F3M][u0X]=editFields;this[W7W][c1P][U2X][x8M]=x1P;this[P0X]();this[G0X](g9X,[_pluck(editFields,U1P),_pluck(editFields,v3X),items],function(){var D9X="initMulti";var R1P=D9X;R1P+=W9X;R1P+=r9X;R1P+=B9X;that[G0X](R1P,[editFields,items],function(){var y9X="eMain";var e9X="embl";var o9X="_ass";var I9X="mOptio";var l9X="_for";var r1P=M9X;r1P+=d3A.k0M;r1P+=F3M;var W1P=s3M;W1P+=i9M;W1P+=d3A.k0M;W1P+=F3M;var D1P=l9X;D1P+=I9X;D1P+=d3A.c0M;D1P+=F3M;var g1P=o9X;g1P+=e9X;g1P+=y9X;that[g1P]();that[D1P](argOpts[W1P]);argOpts[J0X]();var opts=that[F3M][r1P];if(opts[y7W]!==q7W){var M1P=L9X;M1P+=F3M;var B1P=e3M;B1P+=J5M;B1P+=s9X;B1P+=d3A.c0M;$(B1P,that[W7W][v1X])[T9X](opts[M1P])[y7W]();}});});return this;};Editor[j1W][l1P]=function(set,val){var K9X="nObje";var o1P=d3A.S0M;o1P+=d3A.q0M;o1P+=v5M;o1P+=N5M;var I1P=H7X;I1P+=c2W;I1P+=K9X;I1P+=C6W;var that=this;if(!$[I1P](set)){var o={};o[set]=val;set=o;}$[o1P](set,function(n,v){var e1P=F3M;e1P+=d3A.S0M;e1P+=d3A.k0M;that[d0X](n)[e1P](v);});return this;};Editor[y1P][L1P]=function(names,animate){var n9X="Nam";var s1P=V9M;s1P+=d0X;s1P+=n9X;s1P+=U3M;var that=this;$[n7W](this[s1P](names),function(i,n){var T1P=F3M;T1P+=N5M;T1P+=s3M;T1P+=w8M;that[d0X](n)[T1P](animate);});return this;};Editor[j1W][U3W]=function(successCallback,errorCallback,formatdata,hide){var K1P=m9X;K1P+=v1W;K1P+=k9W;K1P+=h3M;var that=this,fields=this[F3M][o4X],errorFields=[],errorReady=U1M,sent=d6W;if(this[F3M][V7W]||!this[F3M][k0X]){return this;}this[K1P](k6W);var send=function(){var F9X='initSubmit';var n1P=D3M;n1P+=z9X;if(errorFields[n1P]!==errorReady||sent){return;}that[G0X](F9X,[that[F3M][k0X]],function(result){var t9X="si";var O9X="oces";if(result===d6W){var m1P=h9X;m1P+=O9X;m1P+=t9X;m1P+=w6W;that[m1P](d6W);return;}sent=k6W;that[Z8X](successCallback,errorCallback,formatdata,hide);});};this[l1W]();$[n7W](fields,function(name,field){var v8X="pus";if(field[T3X]()){var z1P=v8X;z1P+=N5M;errorFields[z1P](name);}});$[n7W](errorFields,function(i,name){fields[name][l1W](B2W,function(){errorReady++;send();});});send();return this;};Editor[j1W][C3X]=function(set){if(set===undefined){return this[F3M][C3X];}this[F3M][C3X]=set===q7W?q7W:$(set);return this;};Editor[F1P][h1P]=function(title){var v0P=p3X;v0P+=f8X;v0P+=d3A.c0M;var t1P=v5M;t1P+=Q1W;t1P+=h3X;var O1P=z0M;O1P+=O0M;O1P+=e7W;O1P+=g0M;var header=$(this[W7W][Z1X])[F9W](O1P+this[t1P][Z1X][q9W]);if(title===undefined){var Z0P=N5M;Z0P+=d3A.k0M;Z0P+=m3W;return header[Z0P]();}if(typeof title===v0P){title=title(this,new DataTable[C4W](this[F3M][r3W]));}header[b0W](title);return this;};Editor[f0P][p0P]=function(field,value){var j8X="nObject";var p8X="Plai";var N0P=b1W;N0P+=Y8M;var j0P=p3W;j0P+=p8X;j0P+=j8X;if(value!==undefined||$[j0P](field)){return this[Z5W](field,value);}return this[N0P](field);};var apiRegister=DataTable[C4W][i0P];function __getInst(api){var A8X="_editor";var i8X="oInit";var N8X="context";var ctx=api[N8X][U1M];return ctx[i8X][H8X]||ctx[A8X];}function __setBasic(inst,opts,type,plural){var u8X='1';var C8X=/%d/;var E0P=E8X;E0P+=D3M;E0P+=d3A.S0M;var H0P=w8X;H0P+=f5X;if(!opts){opts={};}if(opts[H0P]===undefined){var A0P=i7X;A0P+=A1X;A0P+=s3M;A0P+=f5X;opts[A0P]=c1X;}if(opts[E0P]===undefined){var w0P=S4W;w0P+=q4W;opts[H7W]=inst[w0P][type][H7W];}if(opts[b7W]===undefined){var X0P=J2W;X0P+=s3M;X0P+=x9M;if(type===X0P){var Y0P=T3M;Y0P+=d3A.S0M;Y0P+=L8W;Y0P+=v1W;var confirm=inst[X8X][type][Y8X];opts[b7W]=plural!==R1M?confirm[V9M][Y0P](C8X,plural):confirm[u8X];}else{opts[b7W]=B2W;}}return opts;}apiRegister(C0P,function(){return __getInst(this);});apiRegister(d8X,function(opts){var d0P=v5M;d0P+=b8X;d0P+=d3A.S0M;var u0P=k8X;u0P+=B8M;u0P+=d3A.k0M;u0P+=d3A.S0M;var inst=__getInst(this);inst[u0P](__setBasic(inst,opts,d0P));return this;});apiRegister(P8X,function(opts){var inst=__getInst(this);inst[U9M](this[U1M][U1M],__setBasic(inst,opts,V8X));return this;});apiRegister(a8X,function(opts){var b0P=d3A.S0M;b0P+=Q8M;b0P+=d3A.k0M;var inst=__getInst(this);inst[U9M](this[U1M],__setBasic(inst,opts,b0P));return this;});apiRegister(k0P,function(opts){var G8X="emo";var P0P=T3M;P0P+=G8X;P0P+=e7W;P0P+=d3A.S0M;var inst=__getInst(this);inst[c9X](this[U1M][U1M],__setBasic(inst,opts,P0P,R1M));return this;});apiRegister(S8X,function(opts){var V0P=E2W;V0P+=d3A.c0M;V0P+=X6W;var inst=__getInst(this);inst[c9X](this[U1M],__setBasic(inst,opts,q8X,this[U1M][V0P]));return this;});apiRegister(a0P,function(type,opts){if(!type){var G0P=n6W;G0P+=Y5X;G0P+=d3A.S0M;type=G0P;}else if($[N3X](type)){opts=type;type=u5X;}__getInst(this)[type](this[U1M][U1M],opts);return this;});apiRegister(Q8X,function(opts){var J8X="bbl";var S0P=e3M;S0P+=J5M;S0P+=J8X;S0P+=d3A.S0M;__getInst(this)[S0P](this[U1M],opts);return this;});apiRegister(q0P,_api_file);apiRegister(Q0P,_api_files);$(document)[J0P](c8X,function(e,ctx,json){var U8X="ace";var x8X="esp";var x0P=z0M;x0P+=d3A.k0M;var c0P=y0W;c0P+=x8X;c0P+=U8X;if(e[c0P]!==x0P){return;}if(json&&json[p6W]){var U0P=L0M;U0P+=D3M;U0P+=d3A.S0M;U0P+=F3M;$[n7W](json[U0P],function(name,files){var D0P=L0M;D0P+=R8X;var g0P=d3A.S0M;g0P+=R5W;g0P+=z0M;var R0P=g8X;R0P+=U3M;if(!Editor[R0P][name]){Editor[p6W][name]={};}$[g0P](Editor[D0P][name],files);});}});Editor[W0P]=function(msg,tn){var D8X=' For more information, please refer to https://datatables.net/tn/';throw tn?msg+D8X+tn:msg;};Editor[W8X]=function(data,props,fn){var I8X="value";var B0P=p3W;B0P+=o0W;B0P+=e0W;var r0P=A8M;r0P+=r8X;r0P+=d3A.S0M;var i,ien,dataPoint;props=$[U4W]({label:T0X,value:r0P},props);if($[B0P](data)){var M0P=B8X;M0P+=N5M;for(i=U1M,ien=data[M0P];i<ien;i++){dataPoint=data[i];if($[N3X](dataPoint)){var e0P=d3A.q0M;e0P+=M8X;var o0P=Y0W;o0P+=d3A.S0M;o0P+=D3M;var I0P=Y0W;I0P+=d3A.S0M;I0P+=D3M;var l0P=e7W;l0P+=l8X;l0P+=J5M;l0P+=d3A.S0M;fn(dataPoint[props[l0P]]===undefined?dataPoint[props[I0P]]:dataPoint[props[I8X]],dataPoint[props[o0P]],i,dataPoint[e0P]);}else{fn(dataPoint,dataPoint,i);}}}else{i=U1M;$[n7W](data,function(key,val){fn(val,key,i);i++;});}};Editor[y0P]=function(id){var o8X="eplace";var L0P=T3M;L0P+=o8X;return id[L0P](/\./g,S9X);};Editor[s0P]=function(editor,conf,files,progressCallback,completeCallback){var n2u="splic";var n8X="<i>Uploading file</i>";var K8X="fileReadText";var s8X='A server error occurred while uploading the file';var L8X="jax";var y8X="DataURL";var e8X="readAs";var m3P=e8X;m3P+=y8X;var F0P=L7W;F0P+=D3M;F0P+=s3M;F0P+=T9M;var n0P=d3A.q0M;n0P+=L8X;var K0P=o4W;K0P+=i3M;var T0P=d3A.S0M;T0P+=L3M;T0P+=s3M;T0P+=T3M;var reader=new FileReader();var counter=U1M;var ids=[];var generalError=s8X;editor[T0P](conf[K0P],B2W);if(typeof conf[n0P]===m7W){var m0P=d3A.q0M;m0P+=d3A.d0M;m0P+=d3A.q0M;m0P+=m0M;conf[m0P](files,function(ids){var T8X="all";var z0P=v5M;z0P+=T8X;completeCallback[z0P](editor,ids);});return;}progressCallback(conf,conf[K8X]||n8X);reader[F0P]=function(e){var w2u='post';var A2u="RL";var H2u="aU";var N2u="readAsD";var j2u='No Ajax option specified for upload plug-in';var f2u="ajaxData";var v2u='upload';var Z2u='uploadField';var t8X="pload";var O8X="axDa";var h8X="ja";var F8X="tring";var m8X="reSubmit.DTE_Up";var V3P=E5M;V3P+=d3A.c0M;V3P+=z0M;var P3P=h4X;P3P+=L9M;var k3P=i9M;k3P+=m8X;k3P+=z8X;var C3P=d3A.c0M;C3P+=d3A.q0M;C3P+=z8M;C3P+=d3A.S0M;var Y3P=B7X;Y3P+=I3W;Y3P+=z8X;var A3P=F3M;A3P+=F8X;var i3P=d3A.q0M;i3P+=h8X;i3P+=m0M;var f3P=d3A.q0M;f3P+=d3A.d0M;f3P+=L9M;var v3P=d3A.q0M;v3P+=d3A.d0M;v3P+=O8X;v3P+=d4W;var Z3P=M5W;Z3P+=j5M;var t0P=d9W;t0P+=d3A.c0M;t0P+=z0M;var O0P=J5M;O0P+=t8X;var h0P=d3A.q0M;h0P+=v5M;h0P+=d3A.k0M;h0P+=B0M;var data=new FormData();var ajax;data[k0W](h0P,O0P);data[t0P](Z2u,conf[g4W]);data[Z3P](v2u,files[counter]);if(conf[v3P]){conf[f2u](data);}if(conf[z4X]){ajax=conf[z4X];}else if($[N3X](editor[F3M][f3P])){var N3P=J5M;N3P+=s9M;N3P+=d3A.q0M;N3P+=z0M;var j3P=d3A.q0M;j3P+=L8X;var p3P=d3A.q0M;p3P+=d3A.d0M;p3P+=d3A.q0M;p3P+=m0M;ajax=editor[F3M][p3P][p2u]?editor[F3M][j3P][N3P]:editor[F3M][z4X];}else if(typeof editor[F3M][i3P]===z0W){var H3P=h4X;H3P+=L9M;ajax=editor[F3M][H3P];}if(!ajax){throw j2u;}if(typeof ajax===A3P){ajax={url:ajax};}if(typeof ajax[y4W]===m7W){var w3P=d3A.S0M;w3P+=j9X;var E3P=z0M;E3P+=d3A.q0M;E3P+=d3A.k0M;E3P+=d3A.q0M;var d={};var ret=ajax[E3P](d);if(ret!==undefined&&typeof ret!==z0W){d=ret;}$[w3P](d,function(key,value){var X3P=M5W;X3P+=d9M;X3P+=z0M;data[X3P](key,value);});}var preRet=editor[G0X](Y3P,[conf[C3P],files[counter],data]);if(preRet===d6W){var u3P=B8X;u3P+=N5M;if(counter<files[u3P]-R1M){var d3P=N2u;d3P+=i2u;d3P+=H2u;d3P+=A2u;counter++;reader[d3P](files[counter]);}else{var b3P=v5M;b3P+=d3A.q0M;b3P+=E2u;completeCallback[b3P](editor,ids);}return;}var submit=d6W;editor[L7W](k3P,function(){submit=k6W;return d6W;});$[P3P]($[V3P]({},ajax,{type:w2u,data:data,dataType:X2u,contentType:d6W,processData:d6W,xhr:function(){var k2u="ogress";var b2u="onpr";var u2u="upl";var C2u="onloa";var Y2u="ajaxSettings";var a3P=m0M;a3P+=N5M;a3P+=T3M;var xhr=$[Y2u][a3P]();if(xhr[p2u]){var J3P=C2u;J3P+=f3M;J3P+=d3A.c0M;J3P+=z0M;var Q3P=u2u;Q3P+=d2u;var G3P=b2u;G3P+=k2u;xhr[p2u][G3P]=function(e){var q2u=':';var S2u="%";var G2u="toFixed";var a2u="total";var V2u="aded";var P2u="engthComputable";var S3P=D3M;S3P+=P2u;if(e[S3P]){var q3P=j6X;q3P+=V2u;var percent=(e[q3P]/e[a2u]*j0M)[G2u](U1M)+S2u;progressCallback(conf,files[h3W]===R1M?percent:counter+q2u+files[h3W]+T4W+percent);}};xhr[Q3P][J3P]=function(e){var c2u="processingText";var J2u="cessing";var Q2u="Pro";var c3P=Q2u;c3P+=J2u;progressCallback(conf,conf[c2u]||c3P);};}return xhr;},success:function(json){var y2u="readAsDataURL";var I2u="tatus";var M2u="dErro";var r2u="Upload";var W2u="ubmit.DTE";var D2u="preS";var R2u="rSuc";var U2u="dXh";var g3P=d3A.c0M;g3P+=d3A.q0M;g3P+=z8M;g3P+=d3A.S0M;var R3P=x2u;R3P+=U2u;R3P+=R2u;R3P+=g2u;var U3P=V9M;U3P+=d3A.S0M;U3P+=x9M;U3P+=W3W;var x3P=D2u;x3P+=W2u;x3P+=V9M;x3P+=r2u;editor[a6X](x3P);editor[U3P](R3P,[conf[g3P],json]);if(json[B2u]&&json[B2u][h3W]){var W3P=E2W;W3P+=d3A.c0M;W3P+=b1W;W3P+=k1W;var D3P=S6W;D3P+=M2u;D3P+=l2u;var errors=json[D3P];for(var i=U1M,ien=errors[W3P];i<ien;i++){var M3P=F3M;M3P+=I2u;var B3P=d3A.c0M;B3P+=d3A.q0M;B3P+=i3M;var r3P=d3A.S0M;r3P+=o2u;r3P+=T3M;editor[r3P](errors[i][B3P],errors[i][M3P]);}}else if(json[l1W]){editor[l1W](json[l1W]);}else if(!json[p2u]||!json[p2u][D4W]){var l3P=d3A.S0M;l3P+=T3M;l3P+=I1W;editor[l3P](conf[g4W],generalError);}else{var e3P=O0M;e3P+=z0M;var o3P=R1X;o3P+=z8X;if(json[p6W]){var I3P=d3A.Q0M;I3P+=e2u;I3P+=U3M;$[n7W](json[I3P],function(table,files){if(!Editor[p6W][table]){Editor[p6W][table]={};}$[U4W](Editor[p6W][table],files);});}ids[f6W](json[o3P][e3P]);if(counter<files[h3W]-R1M){counter++;reader[y2u](files[counter]);}else{completeCallback[p1W](editor,ids);if(submit){var y3P=L2u;y3P+=s2u;editor[y3P]();}}}progressCallback(conf);},error:function(xhr){var T2u="uploadXhrEr";var T3P=d3A.c0M;T3P+=d3A.q0M;T3P+=z8M;T3P+=d3A.S0M;var s3P=d3A.S0M;s3P+=L3M;s3P+=I0M;var L3P=T2u;L3P+=I1W;editor[G0X](L3P,[conf[g4W],xhr]);editor[s3P](conf[T3P],generalError);progressCallback(conf);}}));};files=$[G3X](files,function(val){return val;});if(conf[K2u]!==undefined){var n3P=d1W;n3P+=b1W;n3P+=d3A.k0M;n3P+=N5M;var K3P=n2u;K3P+=d3A.S0M;files[K3P](conf[K2u],files[n3P]);}reader[m3P](files[U1M]);};Editor[j1W][z2W]=function(init){var u4u="yCont";var C4u="displa";var w4u='xhr.dt.dte';var A4u="eld";var i4u='body_content';var j4u='foot';var v4u="events";var O6u="taTable";var F6u="TON";var z6u="BUT";var K6u='"><div class="';var T6u='<div data-dte-e="head" class="';var s6u='<div data-dte-e="form_error" class="';var L6u='</form>';var y6u="tag";var e6u='<form data-dte-e="form" class="';var I6u='<div data-dte-e="body_content" class="';var l6u="indicator";var M6u='<div data-dte-e="processing" class="';var B6u="legacyAjax";var r6u="dataSources";var W6u="dbTable";var D6u="domTable";var g6u="Url";var x6u="formOp";var Q6u="settin";var q6u="qu";var S6u="an/></div>";var a6u="\"body\" class=\"";var V6u="e=";var P6u="<div data-dte-";var k6u="conten";var b6u="ass=\"";var d6u="iv data-dte-e=\"foot\" cl";var u6u="\"form_content";var C6u="e-e=";var Y6u="<div data-dt";var X6u="\" class=\"";var w6u="rm_info";var E6u="<div data-dte-e=\"fo";var A6u="ader";var H6u="/></div>";var i6u="_buttons\" class=\"";var N6u="<div data-dte-e=\"form";var f6u="Tab";var v6u="form_conte";var Z6u="oote";var O2u="t.dte";var h2u="nit.";var F2u="ique";var m2u="Comp";var u9P=q4X;u9P+=m2u;u9P+=D3M;u9P+=z2u;var N9P=s3M;N9P+=d3A.c0M;var f9P=J5M;f9P+=d3A.c0M;f9P+=F2u;var v9P=O0M;v9P+=h2u;v9P+=z0M;v9P+=O2u;var Z9P=s3M;Z9P+=d3A.c0M;var O5P=V0W;O5P+=t2u;var h5P=j9M;h5P+=g2u;h5P+=h3M;var F5P=P1W;F5P+=q8W;var z5P=d3A.Q0M;z5P+=Z6u;z5P+=T3M;var m5P=d3A.Q0M;m5P+=s3M;m5P+=x9X;var n5P=v6u;n5P+=d3A.c0M;n5P+=d3A.k0M;var l5P=y4W;l5P+=f6u;l5P+=E2W;var M5P=d3A.Q0M;M5P+=d3A.c0M;var B5P=M6W;B5P+=p6u;B5P+=l6W;var r5P=d3A.Q0M;r5P+=j6u;var W5P=N6u;W5P+=i6u;var D5P=M6W;D5P+=H6u;var g5P=i2X;g5P+=d3A.c0M;g5P+=C5M;g5P+=W3W;var R5P=A4X;R5P+=d3A.q0M;R5P+=g9M;var U5P=A4X;U5P+=A6u;var x5P=M6W;x5P+=p6u;x5P+=l6W;var c5P=n6W;c5P+=d3A.Q0M;c5P+=s3M;var J5P=E6u;J5P+=w6u;J5P+=X6u;var Q5P=M6W;Q5P+=p6u;Q5P+=l6W;var q5P=E1W;q5P+=n9M;q5P+=T3M;var S5P=d3A.Q0M;S5P+=s3M;S5P+=T3M;S5P+=z8M;var G5P=H1W;G5P+=H2X;var a5P=d3A.Q0M;a5P+=s3M;a5P+=x9X;var V5P=Y6u;V5P+=C6u;V5P+=u6u;V5P+=X6u;var P5P=M6W;P5P+=l6W;var k5P=a5W;k5P+=z0M;k5P+=G5W;var b5P=M6W;b5P+=p6u;b5P+=l6W;var d5P=v5M;d5P+=s3M;d5P+=W3W;d5P+=H6X;var u5P=M6W;u5P+=l6W;var C5P=w8M;C5P+=b8W;var Y5P=k5W;Y5P+=d6u;Y5P+=b6u;var X5P=k6u;X5P+=d3A.k0M;var w5P=e3M;w5P+=s3M;w5P+=z0M;w5P+=e0M;var E5P=M6W;E5P+=l6W;var A5P=P6u;A5P+=V6u;A5P+=a6u;var H5P=G6u;H5P+=W6W;H5P+=u1W;H5P+=S6u;var i5P=G4X;i5P+=F3M;i5P+=F3M;i5P+=U3M;var N5P=J5M;N5P+=r5W;N5P+=q6u;N5P+=d3A.S0M;var j5P=Q6u;j5P+=v2W;var p5P=O0M;p5P+=d3A.G0M;p5P+=t0M;p5P+=d3A.c0M;var f5P=d3A.S0M;f5P+=J6u;f5P+=u5M;var v5P=v5M;v5P+=Q1W;v5P+=h3X;var Z5P=c6u;Z5P+=d3A.k0M;Z5P+=d3A.S0M;var t3P=x6u;t3P+=j3X;t3P+=F3M;var O3P=y3W;O3P+=m3W;var h3P=U6u;h3P+=A2W;h3P+=D3M;h3P+=d3A.S0M;var F3P=D4W;F3P+=R6u;F3P+=v5M;var z3P=h4X;z3P+=d3A.q0M;z3P+=m0M;z3P+=g6u;init=$[U4W](k6W,{},Editor[Q4W],init);this[F3M]=$[U4W](k6W,{},Editor[R7W][E5W],{table:init[D6u]||init[r3W],dbTable:init[W6u]||q7W,ajaxUrl:init[z3P],ajax:init[z4X],idSrc:init[F3P],dataSource:init[D6u]||init[r3W]?Editor[r6u][h3P]:Editor[r6u][O3P],formOptions:init[t3P],legacyAjax:init[B6u],template:init[C3X]?$(init[Z5P])[B8W]():q7W});this[v5P]=$[f5P](k6W,{},Editor[W1W]);this[p5P]=init[X8X];Editor[R7W][j5P][N5P]++;var that=this;var classes=this[i5P];this[W7W]={"wrapper":$(n7X+classes[s4W]+z4W+M6u+classes[V7W][l6u]+H5P+A5P+classes[x2X][s4W]+E5P+I6u+classes[w5P][X5P]+g5X+Z7W+Y5P+classes[o6u][C5P]+u5P+n7X+classes[o6u][d5P]+b5P+Z7W+k5P)[U1M],"form":$(e6u+classes[e1X][y6u]+P5P+V5P+classes[a5P][G5P]+g5X+L6u)[U1M],"formError":$(s6u+classes[S5P][q5P]+Q5P)[U1M],"formInfo":$(J5P+classes[e1X][c5P]+x5P)[U1M],"header":$(T6u+classes[U5P][s4W]+K6u+classes[R5P][g5P]+D5P)[U1M],"buttons":$(W5P+classes[r5P][v1X]+B5P)[U1M]};if($[M5P][l5P][n6u]){var s5P=N8M;s5P+=z8M;s5P+=m6u;s5P+=d3A.S0M;var L5P=v5M;L5P+=b8X;L5P+=d3A.S0M;var y5P=S4W;y5P+=q4W;var e5P=z6u;e5P+=F6u;e5P+=h6u;var o5P=z0M;o5P+=d3A.q0M;o5P+=O6u;var I5P=d3A.Q0M;I5P+=d3A.c0M;var ttButtons=$[I5P][o5P][n6u][e5P];var i18n=this[y5P];$[n7W]([L5P,V8X,s5P],function(i,val){var Z4u="sButtonText";var t6u='editor_';ttButtons[t6u+val][Z4u]=i18n[val][w5W];});}$[n7W](init[v4u],function(evt,fn){that[L7W](evt,function(){var f4u="if";var K5P=E6W;K5P+=f4u;K5P+=d3A.k0M;var T5P=F3M;T5P+=l3W;T5P+=v5M;T5P+=d3A.S0M;var args=Array[j1W][T5P][p1W](arguments);args[K5P]();fn[T7X](that,args);});});var dom=this[W7W];var wrapper=dom[s4W];dom[p4u]=_editor_el(n5P,dom[m5P])[U1M];dom[z5P]=_editor_el(j4u,wrapper)[U1M];dom[F5P]=_editor_el(x9W,wrapper)[U1M];dom[N4u]=_editor_el(i4u,wrapper)[U1M];dom[h5P]=_editor_el(H4u,wrapper)[U1M];if(init[O5P]){var t5P=d3A.Q0M;t5P+=O0M;t5P+=A4u;t5P+=F3M;this[P4X](init[t5P]);}$(document)[Z9P](v9P+this[F3M][f9P],function(e,settings,json){var E4u="nTa";var p9P=E4u;p9P+=e3M;p9P+=D3M;p9P+=d3A.S0M;if(that[F3M][r3W]&&settings[p9P]===$(that[F3M][r3W])[e3X](U1M)){var j9P=V9M;j9P+=H8X;settings[j9P]=that;}})[N9P](w4u+this[F3M][b3X],function(e,settings,json){var Y4u="_optionsUp";var X4u="nT";var A9P=b1W;A9P+=d3A.S0M;A9P+=d3A.k0M;var H9P=d4W;H9P+=u2X;H9P+=d3A.S0M;var i9P=X4u;i9P+=d3A.q0M;i9P+=u2X;i9P+=d3A.S0M;if(json&&that[F3M][r3W]&&settings[i9P]===$(that[F3M][H9P])[A9P](U1M)){var E9P=Y4u;E9P+=u4W;E9P+=C5M;that[E9P](json);}});try{var X9P=e3W;X9P+=d3A.q0M;X9P+=e0M;var w9P=C4u;w9P+=u4u;w9P+=d4u;this[F3M][w9P]=Editor[X9P][init[x8M]][q4X](this);}catch(e){var k4u="display controller ";var b4u="Cannot find ";var C9P=N0W;C9P+=F7W;C9P+=d3A.q0M;C9P+=e0M;var Y9P=b4u;Y9P+=k4u;throw Y9P+init[C9P];}this[G0X](u9P,[]);};Editor[j1W][P0X]=function(){var a4u="addCla";var P4u="emoveCl";var V9P=w0X;V9P+=i2u;V9P+=d3A.S0M;var P9P=T3M;P9P+=P4u;P9P+=d3A.q0M;P9P+=k9W;var k9P=Z6X;k9P+=E1W;var b9P=d3A.q0M;b9P+=C6W;b9P+=G9M;var d9P=V4u;d9P+=h3X;var classesActions=this[d9P][b9P];var action=this[F3M][k0X];var wrapper=$(this[W7W][k9P]);wrapper[P9P]([classesActions[V9P],classesActions[U9M],classesActions[c9X]][G9X](T4W));if(action===C0X){var a9P=a4u;a9P+=F3M;a9P+=F3M;wrapper[a9P](classesActions[C0X]);}else if(action===U9M){wrapper[X1W](classesActions[U9M]);}else if(action===c9X){wrapper[X1W](classesActions[c9X]);}};Editor[G9P][S9P]=function(data,success,error,submitParams){var j7u='?';var p7u="param";var f7u="complete";var v7u="unshift";var t4u="plet";var O4u="com";var h4u="comple";var F4u="url";var z4u=/_id_/;var n4u="axUrl";var T4u=',';var W4u='POST';var D4u="rl";var g4u="xU";var x4u="sPlainObject";var J4u="DELE";var Q4u="Body";var q4u="delet";var S4u="eBody";var G4u="del";var f8P=G4u;f8P+=Y8M;f8P+=S4u;var v8P=q4u;v8P+=d3A.S0M;v8P+=Q4u;var Z8P=J4u;Z8P+=Z5M;Z8P+=n3M;var t9P=u4W;t9P+=d3A.k0M;t9P+=d3A.q0M;var z9P=z0M;z9P+=d3A.q0M;z9P+=d3A.k0M;z9P+=d3A.q0M;var m9P=N8M;m9P+=L8W;m9P+=v1W;var n9P=J5M;n9P+=T3M;n9P+=D3M;var K9P=J5M;K9P+=T3M;K9P+=D3M;var B9P=c4u;B9P+=h3M;var D9P=O4X;D9P+=d3A.c0M;D9P+=v5M;D9P+=j3X;var g9P=O0M;g9P+=x4u;var R9P=D4W;R9P+=h6u;R9P+=U4u;var U9P=R4u;U9P+=d3A.k0M;var x9P=F4X;x9P+=g4u;x9P+=D4u;var that=this;var action=this[F3M][k0X];var thrown;var opts={type:W4u,dataType:X2u,data:q7W,error:[function(xhr,text,err){thrown=err;}],success:[],complete:[function(xhr,text){var s4u="tus";var L4u="parseJSON";var y4u="responseJSON";var e4u="eJSON";var o4u="respon";var I4u='null';var l4u="responseText";var M4u="status";var B4u="ainO";var r4u="sPl";var N0M=204;var J9P=p3W;J9P+=K4X;J9P+=e0M;var Q9P=O0M;Q9P+=r4u;Q9P+=B4u;Q9P+=X7X;var json=q7W;if(xhr[M4u]===N0M||xhr[l4u]===I4u){json={};}else{try{var q9P=o4u;q9P+=F3M;q9P+=e4u;json=xhr[y4u]?xhr[q9P]:$[L4u](xhr[l4u]);}catch(e){}}if($[Q9P](json)||$[J9P](json)){var c9P=F3M;c9P+=d3A.k0M;c9P+=d3A.q0M;c9P+=s4u;success(json,xhr[c9P]>=i0M,xhr);}else{error(xhr,text,thrown);}}]};var a;var ajaxSrc=this[F3M][z4X]||this[F3M][x9P];var id=action===U9P||action===q8X?_pluck(this[F3M][u0X],R9P):q7W;if($[x1X](id)){id=id[G9X](T4u);}if($[g9P](ajaxSrc)&&ajaxSrc[action]){ajaxSrc=ajaxSrc[action];}if(typeof ajaxSrc===D9P){var uri=q7W;var method=q7W;if(this[F3M][K4u]){var W9P=h4X;W9P+=n4u;var url=this[F3M][W9P];if(url[C0X]){uri=url[action];}if(uri[m4u](T4W)!==-R1M){var r9P=u1W;r9P+=l3W;r9P+=d3A.k0M;a=uri[r9P](T4W);method=a[U1M];uri=a[R1M];}uri=uri[F0W](z4u,id);}ajaxSrc(method,uri,data,success,error);return;}else if(typeof ajaxSrc===B9P){if(ajaxSrc[m4u](T4W)!==-R1M){var l9P=J5M;l9P+=T3M;l9P+=D3M;var M9P=N6X;M9P+=O0M;M9P+=d3A.k0M;a=ajaxSrc[M9P](T4W);opts[C9M]=a[U1M];opts[l9P]=a[R1M];}else{opts[F4u]=ajaxSrc;}}else{var L9P=d3A.S0M;L9P+=o2u;L9P+=T3M;var o9P=h4u;o9P+=C5M;var I9P=E5M;I9P+=u5M;var optsCopy=$[I9P]({},ajaxSrc||{});if(optsCopy[o9P]){var y9P=O4u;y9P+=t4u;y9P+=d3A.S0M;var e9P=O4u;e9P+=Z7u;opts[e9P][v7u](optsCopy[y9P]);delete optsCopy[f7u];}if(optsCopy[L9P]){var T9P=J5M;T9P+=t7W;var s9P=E1W;s9P+=T3M;s9P+=s3M;s9P+=T3M;opts[s9P][T9P](optsCopy[l1W]);delete optsCopy[l1W];}opts=$[U4W]({},opts,optsCopy);}opts[K9P]=opts[n9P][m9P](z4u,id);if(opts[z9P]){var O9P=p5M;O9P+=j5M;var h9P=p3X;h9P+=g0W;h9P+=L7W;var F9P=z0M;F9P+=d3A.q0M;F9P+=d3A.k0M;F9P+=d3A.q0M;var isFn=typeof opts[F9P]===h9P;var newData=isFn?opts[y4W](data):opts[y4W];data=isFn&&newData?newData:$[O9P](k6W,data,newData);}opts[t9P]=data;if(opts[C9M]===Z8P&&(opts[v8P]===undefined||opts[f8P]===k6W)){var params=$[p7u](opts[y4W]);opts[F4u]+=opts[F4u][m4u](j7u)===-R1M?j7u+params:t0W+params;delete opts[y4W];}$[z4X](opts);};Editor[j1W][p8P]=function(target,style,time,callback){var N7u="stop";var N8P=k7X;N8P+=P7X;N8P+=d3A.k0M;N8P+=d3A.S0M;var j8P=d3A.Q0M;j8P+=d3A.c0M;if($[j8P][N8P]){target[N7u]()[u6X](style,time,callback);}else{target[E0W](style);if(typeof time===m7W){var i8P=v5M;i8P+=l8X;i8P+=D3M;time[i8P](target);}else if(callback){callback[p1W](target);}}};Editor[j1W][Q0X]=function(){var E7u="wrappe";var A7u="ormError";var H7u="ppend";var i7u="mIn";var d8P=a5X;d8P+=i7u;d8P+=d3A.Q0M;d8P+=s3M;var u8P=d3A.q0M;u8P+=H7u;var C8P=P5X;C8P+=d3A.k0M;C8P+=s3M;C8P+=f5X;var Y8P=d3A.Q0M;Y8P+=A7u;var X8P=M5W;X8P+=j5M;var w8P=N5M;w8P+=d3A.S0M;w8P+=T9M;w8P+=E1W;var E8P=i9M;E8P+=T3M;E8P+=d3A.S0M;E8P+=Y3X;var A8P=E7u;A8P+=T3M;var H8P=z0M;H8P+=s3M;H8P+=z8M;var dom=this[H8P];$(dom[A8P])[E8P](dom[w8P]);$(dom[o6u])[X8P](dom[Y8P])[k0W](dom[C8P]);$(dom[N4u])[u8P](dom[d8P])[k0W](dom[e1X]);};Editor[j1W][j7X]=function(){var d7u="ose";var C7u='preBlur';var Y7u="lur";var X7u="onB";var w7u="ction";var V8P=F3M;V8P+=J5M;V8P+=e3M;V8P+=s2u;var P8P=d3A.Q0M;P8P+=f5W;P8P+=w7u;var k8P=c9M;k8P+=e7W;k8P+=H6X;var b8P=X7u;b8P+=Y7u;var opts=this[F3M][f7X];var onBlur=opts[b8P];if(this[k8P](C7u)===d6W){return;}if(typeof onBlur===P8P){onBlur(this);}else if(onBlur===V8P){this[U3W]();}else if(onBlur===C5W){var a8P=u7u;a8P+=d7u;this[a8P]();}};Editor[G8P][S8P]=function(){var k7u="lasses";var b7u="mes";var R8P=b7u;R8P+=F3M;R8P+=G0W;R8P+=d3A.S0M;var x8P=B8M;x8P+=X0W;var c8P=M6X;c8P+=V9W;var J8P=z0M;J8P+=s3M;J8P+=z8M;var Q8P=d3A.Q0M;Q8P+=O0M;Q8P+=G8M;Q8P+=z0M;var q8P=v5M;q8P+=k7u;if(!this[F3M]){return;}var errorClass=this[q8P][Q8P][l1W];var fields=this[F3M][o4X];$(P7u+errorClass,this[J8P][c8P])[x1W](errorClass);$[x8P](fields,function(name,field){var U8P=V7u;U8P+=d3A.S0M;field[l1W](B2W)[U8P](B2W);});this[l1W](B2W)[R8P](B2W);};Editor[g8P][a7u]=function(submitComplete,mode){var R7u="closeIc";var x7u="oseC";var J7u="_eve";var Q7u="ditor-foc";var q7u="focus.e";var S7u="isplayed";var o8P=G7u;o8P+=d3A.S0M;var I8P=c9M;I8P+=e7W;I8P+=H6X;var l8P=z0M;l8P+=S7u;var M8P=q7u;M8P+=Q7u;M8P+=b7X;var W8P=B7X;W8P+=D6X;W8P+=n8M;var D8P=J7u;D8P+=d3A.c0M;D8P+=d3A.k0M;if(this[D8P](W8P)===d6W){return;}if(this[F3M][c7u]){var r8P=v5M;r8P+=D3M;r8P+=x7u;r8P+=e3M;this[F3M][r8P](submitComplete,mode);this[F3M][c7u]=q7W;}if(this[F3M][U7u]){var B8P=R7u;B8P+=e3M;this[F3M][U7u]();this[F3M][B8P]=q7W;}$(x9W)[a6X](M8P);this[F3M][l8P]=d6W;this[I8P](o8P);};Editor[j1W][f1X]=function(fn){this[F3M][c7u]=fn;};Editor[j1W][e8P]=function(arg1,arg2,arg3,arg4){var r7u="itle";var W7u="ject";var D7u="sPlainO";var n8P=z8M;n8P+=d3A.q0M;n8P+=O0M;n8P+=d3A.c0M;var K8P=e1X;K8P+=g7u;var T8P=E5M;T8P+=u5M;var y8P=O0M;y8P+=D7u;y8P+=e3M;y8P+=W7u;var that=this;var title;var buttons;var show;var opts;if($[y8P](arg1)){opts=arg1;}else if(typeof arg1===C7X){show=arg1;opts=arg2;}else{title=arg1;buttons=arg2;show=arg3;opts=arg4;}if(show===undefined){show=k6W;}if(title){var L8P=d3A.k0M;L8P+=r7u;that[L8P](title);}if(buttons){var s8P=i7X;s8P+=q5X;that[s8P](buttons);}return{opts:$[T8P]({},this[F3M][K8P][n8P],opts),maybeOpen:function(){if(show){that[M7X]();}}};};Editor[m8P][z8P]=function(name){var B7u="hi";var t8P=U6u;t8P+=r9M;var O8P=F3M;O8P+=B7u;O8P+=d3A.Q0M;O8P+=d3A.k0M;var h8P=v5M;h8P+=d3A.q0M;h8P+=D3M;h8P+=D3M;var F8P=i9M;F8P+=S8M;F8P+=P9X;var args=Array[F8P][V9X][h8P](arguments);args[O8P]();var fn=this[F3M][t8P][name];if(fn){var Z2y=d3A.q0M;Z2y+=j2X;Z2y+=D3M;Z2y+=e0M;return fn[Z2y](this,args);}};Editor[v2y][f2y]=function(includeFields){var n7u="endT";var o7u="includeFie";var I7u="hildren";var l7u="detac";var M7u="displayO";var G2y=M7u;G2y+=T3M;G2y+=g9M;var V2y=z8M;V2y+=d3A.q0M;V2y+=n6W;var X2y=d3A.S0M;X2y+=d3A.q0M;X2y+=v5M;X2y+=N5M;var w2y=l7u;w2y+=N5M;var E2y=v5M;E2y+=I7u;var i2y=z8M;i2y+=d3A.q0M;i2y+=n6W;var N2y=z8M;N2y+=N2W;var j2y=c6u;j2y+=C5M;var p2y=z0M;p2y+=s3M;p2y+=z8M;var that=this;var formContent=$(this[p2y][p4u]);var fields=this[F3M][o4X];var order=this[F3M][T4X];var template=this[F3M][j2y];var mode=this[F3M][N2y]||i2y;if(includeFields){var H2y=o7u;H2y+=t2u;this[F3M][H2y]=includeFields;}else{var A2y=v0X;A2y+=f0X;includeFields=this[F3M][A2y];}formContent[E2y]()[w2y]();$[X2y](order,function(i,fieldOrName){var K7u='[data-editor-template="';var T7u="or-field[name=\"";var L7u="ter";var y7u="InArray";var e7u="eak";var C2y=V9M;C2y+=w8M;C2y+=e7u;C2y+=y7u;var Y2y=q3M;Y2y+=b4W;var name=fieldOrName instanceof Editor[Y2y]?fieldOrName[g4W]():fieldOrName;if(that[C2y](name,includeFields)!==-R1M){if(template&&mode===c3X){var k2y=d3A.Q0M;k2y+=j9W;var b2y=O6W;b2y+=L7u;var d2y=M6W;d2y+=s7u;var u2y=d3A.S0M;u2y+=B5X;u2y+=T7u;template[D5X](u2y+name+d2y)[b2y](fields[name][u4X]());template[k2y](K7u+name+v6W)[k0W](fields[name][u4X]());}else{var P2y=d3A.c0M;P2y+=s3M;P2y+=z0M;P2y+=d3A.S0M;formContent[k0W](fields[name][P2y]());}}});if(template&&mode===V2y){var a2y=d3A.q0M;a2y+=j2X;a2y+=n7u;a2y+=s3M;template[a2y](formContent);}this[G0X](G2y,[this[F3M][V3X],this[F3M][k0X],formContent]);};Editor[j1W][S2y]=function(items,editFields,type,formOptions,setupDone){var E1u="tri";var A1u="oS";var t7u="tF";var O7u="itDa";var h7u="splay";var F7u="ock";var z7u="ionClass";var m7u="nitEd";var m2y=d3A.c0M;m2y+=s3M;m2y+=z0M;m2y+=d3A.S0M;var n2y=O0M;n2y+=m7u;n2y+=O0M;n2y+=d3A.k0M;var s2y=Z1W;s2y+=O0M;s2y+=v5M;s2y+=d3A.S0M;var g2y=B8M;g2y+=v5M;g2y+=N5M;var R2y=A9W;R2y+=C6W;R2y+=z7u;var U2y=e3M;U2y+=D3M;U2y+=F7u;var x2y=Q8M;x2y+=h7u;var c2y=z0M;c2y+=w1W;var J2y=X5M;J2y+=O7u;J2y+=d3A.k0M;J2y+=d3A.q0M;var Q2y=R4u;Q2y+=t7u;Q2y+=F1X;var q2y=d0X;q2y+=F3M;var that=this;var fields=this[F3M][q2y];var usedFields=[];var includeInOrder;var editData={};this[F3M][Q2y]=editFields;this[F3M][J2y]=editData;this[F3M][C4X]=items;this[F3M][k0X]=U9M;this[c2y][e1X][U2X][x2y]=U2y;this[F3M][Y5M]=type;this[R2y]();$[g2y](fields,function(name,field){var D2y=B8M;D2y+=v5M;D2y+=N5M;field[V0X]();includeInOrder=d6W;editData[name]={};$[D2y](editFields,function(idSrc,edit){var H1u="splayF";var N1u="isplayFie";var j1u="displayF";var f1u="scope";var v1u="Data";var Z1u="From";if(edit[o4X][name]){var M2y=F3M;M2y+=l3W;M2y+=v5M;M2y+=d3A.S0M;var B2y=p3W;B2y+=o0W;B2y+=e0W;var r2y=z0M;r2y+=d3A.q0M;r2y+=d3A.k0M;r2y+=d3A.q0M;var W2y=U0W;W2y+=Z1u;W2y+=v1u;var val=field[W2y](edit[r2y]);editData[name][idSrc]=val===q7W?B2W:$[B2y](val)?val[M2y]():val;if(!formOptions||formOptions[f1u]===p1u){var o2y=j1u;o2y+=F1X;var I2y=z0M;I2y+=N1u;I2y+=t2u;var l2y=z0M;l2y+=d3A.S0M;l2y+=d3A.Q0M;field[I4X](idSrc,val!==undefined?val:field[l2y]());if(!edit[I2y]||edit[o2y][name]){includeInOrder=k6W;}}else{var y2y=i1u;y2y+=F3M;var e2y=Q8M;e2y+=H1u;e2y+=F1X;if(!edit[e2y]||edit[y2y][name]){var L2y=z0M;L2y+=d3A.S0M;L2y+=d3A.Q0M;field[I4X](idSrc,val!==undefined?val:field[L2y]());includeInOrder=k6W;}}}});if(field[I0W]()[h3W]!==U1M&&includeInOrder){usedFields[f6W](name);}});var currOrder=this[T4X]()[s2y]();for(var i=currOrder[h3W]-R1M;i>=U1M;i--){var K2y=d3A.k0M;K2y+=A1u;K2y+=E1u;K2y+=w6W;var T2y=w1u;T2y+=e0W;if($[T2y](currOrder[i][K2y](),usedFields)===-R1M){currOrder[n4X](i,R1M);}}this[m4X](currOrder);this[G0X](n2y,[_pluck(editFields,m2y)[U1M],_pluck(editFields,v3X)[U1M],items,type],function(){var u1u="vent";var C1u="tiEdit";var Y1u="tMul";var X1u="ini";var F2y=X1u;F2y+=Y1u;F2y+=C1u;var z2y=c9M;z2y+=u1u;that[z2y](F2y,[editFields,items,type],function(){setupDone();});});};Editor[j1W][h2y]=function(trigger,args,promiseComplete){var q1u="esul";var S1u="then";var G1u="resul";var a1u='Cancelled';var P1u="result";var k1u='pre';var b1u="Event";var O2y=p3W;O2y+=o0W;O2y+=T3M;O2y+=v6X;if(!args){args=[];}if($[O2y](trigger)){var t2y=B8X;t2y+=N5M;for(var i=U1M,ien=trigger[t2y];i<ien;i++){this[G0X](trigger[i],args);}}else{var Z6y=d1u;Z6y+=T3M;var e=$[b1u](trigger);$(this)[Z6y](e,args);if(trigger[m4u](k1u)===U1M&&e[P1u]===d6W){$(this)[V1u]($[b1u](trigger+a1u),args);}if(promiseComplete){var v6y=G1u;v6y+=d3A.k0M;if(e[P1u]&&typeof e[P1u]===u6W&&e[v6y][S1u]){var p6y=d3A.k0M;p6y+=N5M;p6y+=d3A.S0M;p6y+=d3A.c0M;var f6y=T3M;f6y+=q1u;f6y+=d3A.k0M;e[f6y][p6y](promiseComplete);}else{promiseComplete();}}return e[P1u];}};Editor[j1W][A9X]=function(input){var R1u="toLowerCase";var x1u="bst";var c1u=/^on([A-Z])/;var Q1u="split";var j6y=B8X;j6y+=N5M;var name;var names=input[Q1u](T4W);for(var i=U1M,ien=names[j6y];i<ien;i++){name=names[i];var onStyle=name[J1u](c1u);if(onStyle){var N6y=M1X;N6y+=x1u;N6y+=U1u;name=onStyle[R1M][R1u]()+name[N6y](D1M);}names[i]=name;}return names[G9X](T4W);};Editor[j1W][g1u]=function(node){var i6y=D1u;i6y+=N5M;var foundField=q7W;$[i6y](this[F3M][o4X],function(name,field){var H6y=d3A.Q0M;H6y+=O0M;H6y+=d3A.c0M;H6y+=z0M;if($(field[u4X]())[H6y](node)[h3W]){foundField=field;}});return foundField;};Editor[A6y][P3X]=function(fieldNames){if(fieldNames===undefined){var E6y=L0M;E6y+=J4X;return this[E6y]();}else if(!$[x1X](fieldNames)){return[fieldNames];}return fieldNames;};Editor[w6y][n5X]=function(fieldsIn,focus){var l1u=/^jq:/;var M1u="E ";var B1u='jq:';var b6y=W1u;b6y+=r1u;b6y+=F3M;var C6y=Y0X;C6y+=z8M;C6y+=k1X;C6y+=T3M;var X6y=z8M;X6y+=d3A.q0M;X6y+=i9M;var that=this;var field;var fields=$[X6y](fieldsIn,function(fieldOrName){var Y6y=c4u;Y6y+=O0M;Y6y+=w6W;return typeof fieldOrName===Y6y?that[F3M][o4X][fieldOrName]:fieldOrName;});if(typeof focus===C6y){field=fields[focus];}else if(focus){if(focus[m4u](B1u)===U1M){var u6y=u8W;u6y+=B3M;u6y+=Z5M;u6y+=M1u;field=$(u6y+focus[F0W](l1u,B2W));}else{var d6y=d3A.Q0M;d6y+=K0M;d6y+=z0M;d6y+=F3M;field=this[F3M][d6y][focus];}}this[F3M][b6y]=field;if(field){field[y7W]();}};Editor[j1W][k6y]=function(opts){var A0u="uttons";var N0u="onBackground";var j0u="Backg";var p0u="blurOn";var f0u="blurOnBackground";var v0u="onReturn";var Z0u="submitOnReturn";var t1u="onBlur";var O1u="submitOnBlur";var h1u="ple";var F1u="onCo";var z1u="OnComplete";var m1u="closeOnComplete";var n1u='.dteInline';var K1u="ditO";var T1u="ount";var L1u="ssag";var e1u="yup";var I1u="eIcb";var w4y=G7u;w4y+=I1u;var L6y=o1u;L6y+=e1u;var l6y=s3M;l6y+=d3A.c0M;var r6y=P1W;r6y+=y1u;r6y+=B8M;r6y+=d3A.c0M;var D6y=i3M;D6y+=L1u;D6y+=d3A.S0M;var x6y=E8X;x6y+=E2W;var c6y=c4u;c6y+=h3M;var J6y=g0W;J6y+=s1u;J6y+=d3A.S0M;var Q6y=U9M;Q6y+=D6X;Q6y+=T1u;var q6y=d3A.S0M;q6y+=K1u;q6y+=x3W;var that=this;var inlineCount=__inlineCounter++;var namespace=n1u+inlineCount;if(opts[m1u]!==undefined){var a6y=v5M;a6y+=D3M;a6y+=s3M;a6y+=J1W;var V6y=E3M;V6y+=z1u;var P6y=F1u;P6y+=z8M;P6y+=h1u;P6y+=C5M;opts[P6y]=opts[V6y]?a6y:w0W;}if(opts[O1u]!==undefined){opts[t1u]=opts[O1u]?Y5W:C5W;}if(opts[Z0u]!==undefined){opts[v0u]=opts[Z0u]?Y5W:w0W;}if(opts[f0u]!==undefined){var S6y=e3M;S6y+=D3M;S6y+=m8M;var G6y=p0u;G6y+=j0u;G6y+=n9M;G6y+=L2X;opts[N0u]=opts[G6y]?S6y:w0W;}this[F3M][q6y]=opts;this[F3M][Q6y]=inlineCount;if(typeof opts[J6y]===c6y||typeof opts[x6y]===m7W){var g6y=d3A.k0M;g6y+=a7X;g6y+=d3A.S0M;var R6y=d3A.k0M;R6y+=O0M;R6y+=i0u;var U6y=E8X;U6y+=E2W;this[U6y](opts[R6y]);opts[g6y]=k6W;}if(typeof opts[b7W]===z0W||typeof opts[D6y]===m7W){var W6y=V7u;W6y+=d3A.S0M;this[b7W](opts[b7W]);opts[W6y]=k6W;}if(typeof opts[v1X]!==r6y){var M6y=H0u;M6y+=s3M;M6y+=f5X;var B6y=e3M;B6y+=A0u;this[B6y](opts[v1X]);opts[M6y]=k6W;}$(document)[l6y](E0u+namespace,function(e){var b0u="eventDefault";var d0u="canReturnSubmit";var u0u="romNode";var C0u="_fieldF";var Y0u="unct";var w0u="Co";var I6y=U1X;I6y+=w0u;I6y+=z0M;I6y+=d3A.S0M;if(e[I6y]===e1M&&that[F3M][V3X]){var el=$(document[X0u]);if(el){var e6y=d3A.Q0M;e6y+=Y0u;e6y+=O0M;e6y+=L7W;var o6y=C0u;o6y+=u0u;var field=that[o6y](el);if(field&&typeof field[d0u]===e6y&&field[d0u](el)){var y6y=q9M;y6y+=b0u;e[y6y]();}}}});$(document)[L7W](L6y+namespace,function(e){var I0u="next";var l0u='button';var M0u="prev";var B0u="Code";var r0u='.DTE_Form_Buttons';var W0u='blur';var D0u="onEsc";var g0u="sc";var R0u="functio";var U0u="Esc";var x0u="tur";var c0u="onRe";var J0u="Defau";var Q0u="prevent";var q0u="nRetur";var S0u="ReturnSubmit";var G0u="can";var a0u="ubmit";var V0u="canReturnS";var P0u="keyC";var k0u="paren";var Z0M=39;var t1M=37;var N4y=D3M;N4y+=d9M;N4y+=X6W;var j4y=k0u;j4y+=j2W;var T6y=e3W;T6y+=v6X;T6y+=d3A.S0M;T6y+=z0M;var s6y=P0u;s6y+=N2W;var el=$(document[X0u]);if(e[s6y]===e1M&&that[F3M][T6y]){var m6y=V0u;m6y+=a0u;var n6y=d3A.Q0M;n6y+=f5W;n6y+=C6W;n6y+=B0M;var K6y=G0u;K6y+=S0u;var field=that[g1u](el);if(field&&typeof field[K6y]===n6y&&field[m6y](el)){var z6y=s3M;z6y+=q0u;z6y+=d3A.c0M;if(opts[z6y]===Y5W){var h6y=F3M;h6y+=J5M;h6y+=l1X;h6y+=d3A.k0M;var F6y=Q0u;F6y+=J0u;F6y+=G4W;e[F6y]();that[h6y]();}else if(typeof opts[v0u]===m7W){var O6y=c0u;O6y+=x0u;O6y+=d3A.c0M;e[z1X]();opts[O6y](that,e);}}}else if(e[T1X]===m1M){var p4y=L7W;p4y+=U0u;var f4y=v5M;f4y+=D3M;f4y+=s3M;f4y+=J1W;var Z4y=R0u;Z4y+=d3A.c0M;var t6y=s3M;t6y+=d3A.c0M;t6y+=n3M;t6y+=g0u;e[z1X]();if(typeof opts[t6y]===Z4y){opts[D0u](that,e);}else if(opts[D0u]===W0u){var v4y=o8M;v4y+=T3M;that[v4y]();}else if(opts[D0u]===f4y){that[E3M]();}else if(opts[p4y]===Y5W){that[U3W]();}}else if(el[j4y](r0u)[N4y]){var H4y=U1X;H4y+=B0u;if(e[T1X]===t1M){var i4y=K8M;i4y+=d7X;el[M0u](l0u)[i4y]();}else if(e[H4y]===Z0M){var E4y=d3A.Q0M;E4y+=r1u;E4y+=F3M;var A4y=i7X;A4y+=A1X;A4y+=s3M;A4y+=d3A.c0M;el[I0u](A4y)[E4y]();}}});this[F3M][w4y]=function(){var o0u="yu";var Y4y=G6W;Y4y+=d3A.S0M;Y4y+=o0u;Y4y+=i9M;var X4y=s3M;X4y+=d3A.Q0M;X4y+=d3A.Q0M;$(document)[a6X](E0u+namespace);$(document)[X4y](Y4y+namespace);};return namespace;};Editor[C4y][e0u]=function(direction,action,data){var s0u="crea";var L0u="yAjax";var y0u="gac";var d4y=F3M;d4y+=d3A.S0M;d4y+=d3A.c0M;d4y+=z0M;var u4y=E2W;u4y+=y0u;u4y+=L0u;if(!this[F3M][u4y]||!data){return;}if(direction===d4y){var k4y=X5M;k4y+=l0M;var b4y=s0u;b4y+=d3A.k0M;b4y+=d3A.S0M;if(action===b4y||action===k4y){var G4y=d3A.S0M;G4y+=z0M;G4y+=O0M;G4y+=d3A.k0M;var a4y=U6u;a4y+=d3A.q0M;var P4y=z0M;P4y+=d3A.q0M;P4y+=d3A.k0M;P4y+=d3A.q0M;var id;$[n7W](data[P4y],function(rowId,values){var n0u="ing is not supported by the legacy Ajax data format";var K0u="ow edit";var T0u="Editor: Multi-";if(id!==undefined){var V4y=T0u;V4y+=T3M;V4y+=K0u;V4y+=n0u;throw V4y;}id=rowId;});data[a4y]=data[y4W][id];if(action===G4y){data[D4W]=id;}}else{var q4y=U6u;q4y+=d3A.q0M;var S4y=u4W;S4y+=d4W;data[D4W]=$[G3X](data[S4y],function(values,id){return id;});delete data[q4y];}}else{if(!data[y4W]&&data[Y4X]){var Q4y=T3M;Q4y+=p2X;data[y4W]=[data[Q4y]];}else if(!data[y4W]){data[y4W]=[];}}};Editor[J4y][m0u]=function(json){var c4y=l4W;c4y+=f8X;c4y+=d3A.c0M;c4y+=F3M;var that=this;if(json[c4y]){var U4y=d0X;U4y+=F3M;var x4y=B8M;x4y+=X0W;$[x4y](this[F3M][U4y],function(name,field){var F0u="update";var z0u="pti";var R4y=s3M;R4y+=z0u;R4y+=s3M;R4y+=f5X;if(json[R4y][name]!==undefined){var fieldInst=that[d0X](name);if(fieldInst&&fieldInst[F0u]){fieldInst[F0u](json[h0u][name]);}}});}};Editor[j1W][l3X]=function(el,msg){var t0u="played";var O0u="ncti";var W4y=O4X;W4y+=O0u;W4y+=s3M;W4y+=d3A.c0M;var D4y=k7X;D4y+=P7X;D4y+=d3A.k0M;D4y+=d3A.S0M;var g4y=d3A.Q0M;g4y+=d3A.c0M;var canAnimate=$[g4y][D4y]?k6W:d6W;if(typeof msg===W4y){msg=msg(this,new DataTable[C4W](this[F3M][r3W]));}el=$(el);if(canAnimate){var r4y=F3M;r4y+=d3A.k0M;r4y+=s3M;r4y+=i9M;el[r4y]();}if(!msg){var B4y=N0W;B4y+=t0u;if(this[F3M][B4y]&&canAnimate){el[N4X](function(){el[b0W](B2W);});}else{var M4y=v5M;M4y+=F3M;M4y+=F3M;el[b0W](B2W)[M4y](x7W,w0W);}}else{var l4y=A0X;l4y+=X3X;if(this[F3M][l4y]&&canAnimate){var I4y=y3W;I4y+=m3W;el[I4y](msg)[k6X]();}else{var e4y=u2X;e4y+=s3M;e4y+=v5M;e4y+=G6W;var o4y=N5M;o4y+=d3A.k0M;o4y+=z8M;o4y+=D3M;el[o4y](msg)[E0W](x7W,e4y);}}};Editor[j1W][y4y]=function(){var p3u="ultiValue";var f3u="isM";var v3u="oShown";var Z3u="Inf";var L4y=d3A.Q0M;L4y+=K0M;L4y+=n0M;var fields=this[F3M][L4y];var include=this[F3M][i1X];var show=k6W;var state;if(!include){return;}for(var i=U1M,ien=include[h3W];i<ien;i++){var T4y=a3M;T4y+=Z3u;T4y+=v3u;var s4y=f3u;s4y+=p3u;var field=fields[include[i]];var multiEditable=field[l7W]();if(field[j0W]()&&multiEditable&&show){state=k6W;show=d6W;}else if(field[s4y]()&&!multiEditable){state=k6W;}else{state=d6W;}fields[include[i]][T4y](state);}};Editor[j1W][H1X]=function(type){var V3u="_multiInfo";var w3u='focus.editor-focus';var E3u="captureFocus";var A3u="displayCont";var H3u="ditor-intern";var i3u="mit.e";var N3u="tern";var j3u="mit.editor-in";var p7y=l4W;p7y+=d9M;var h4y=L2u;h4y+=j3u;h4y+=N3u;h4y+=l8X;var F4y=s3M;F4y+=d3A.c0M;var z4y=L2u;z4y+=i3u;z4y+=H3u;z4y+=l8X;var m4y=s3M;m4y+=d3A.Q0M;m4y+=d3A.Q0M;var n4y=d3A.Q0M;n4y+=s3M;n4y+=T3M;n4y+=z8M;var K4y=A3u;K4y+=d4u;var that=this;var focusCapture=this[F3M][K4y][E3u];if(focusCapture===undefined){focusCapture=k6W;}$(this[W7W][n4y])[m4y](z4y)[F4y](h4y,function(e){e[z1X]();});if(focusCapture&&(type===c3X||type===o7X)){$(x9W)[L7W](w3u,function(){var P3u="ocus";var k3u="Fo";var b3u='.DTE';var d3u="ement";var u3u="El";var Y3u="TE";var X3u=".D";var Z7y=X3u;Z7y+=Y3u;Z7y+=B3M;var t4y=i9M;t4y+=d3A.q0M;t4y+=T3M;t4y+=a1W;var O4y=C3u;O4y+=x9M;O4y+=u3u;O4y+=d3u;if($(document[X0u])[K5X](b3u)[h3W]===U1M&&$(document[O4y])[t4y](Z7y)[h3W]===U1M){var v7y=Z5W;v7y+=k3u;v7y+=d7X;if(that[F3M][v7y]){var f7y=W1u;f7y+=P3u;that[F3M][f7y][y7W]();}}});}this[V3u]();this[G0X](p7y,[type,this[F3M][k0X]]);return k6W;};Editor[j1W][j7y]=function(type){var q3u="cancelO";var S3u="oseIc";var a3u="actio";var N7y=a3u;N7y+=d3A.c0M;if(this[G0X](G3u,[type,this[F3M][N7y]])===d6W){var E7y=v5M;E7y+=D3M;E7y+=S3u;E7y+=e3M;var A7y=E1X;A7y+=d3A.S0M;var H7y=z8M;H7y+=s3M;H7y+=z0M;H7y+=d3A.S0M;var i7y=q3u;i7y+=R3X;this[j1X]();this[G0X](i7y,[type,this[F3M][k0X]]);if((this[F3M][H7y]===u5X||this[F3M][Y5M]===A7y)&&this[F3M][U7u]){this[F3M][U7u]();}this[F3M][E7y]=q7W;return d6W;}this[F3M][V3X]=type;return k6W;};Editor[w7y][Q3u]=function(processing){var x3u="toggleClass";var c3u='div.DTE';var J3u="active";var Y7y=z0M;Y7y+=s3M;Y7y+=z8M;var X7y=V4u;X7y+=h3X;var procClass=this[X7y][V7W][J3u];$([c3u,this[Y7y][s4W]])[x3u](procClass,processing);this[F3M][V7W]=processing;this[G0X](H4u,[processing]);};Editor[C7y][Z8X]=function(successCallback,errorCallback,formatdata,hide){var d5u="ocess";var Y5u="mpl";var X5u="onC";var A5u="event";var H5u="submitComple";var i5u='changed';var z3u="ged";var m3u="allIfCh";var n3u="bTable";var K3u="_fnSetObjectDataFn";var T3u="oA";var s3u="ataSource";var L3u="ditCou";var y3u="fier";var e3u="modi";var o3u="itFiel";var I3u="ditData";var l3u="bm";var M3u="Tabl";var B3u="Aja";var r3u="gacy";var W3u="_le";var g3u="preSu";var R3u="ubmitTa";var h7y=U3u;h7y+=R3u;h7y+=u2X;h7y+=d3A.S0M;var F7y=A9W;F7y+=d3A.d0M;F7y+=L9M;var m7y=g3u;m7y+=D3u;var n7y=V9M;n7y+=D0X;n7y+=H6X;var K7y=d3A.S0M;K7y+=R5W;K7y+=z0M;var T7y=F3M;T7y+=d3A.S0M;T7y+=d3A.c0M;T7y+=z0M;var s7y=W3u;s7y+=r3u;s7y+=B3u;s7y+=m0M;var e7y=T3M;e7y+=r9X;e7y+=m6u;e7y+=d3A.S0M;var G7y=z0M;G7y+=e3M;G7y+=M3u;G7y+=d3A.S0M;var a7y=M1X;a7y+=l3u;a7y+=l0M;var V7y=d3A.S0M;V7y+=I3u;var P7y=X5M;P7y+=o3u;P7y+=n0M;var k7y=e3u;k7y+=y3u;var b7y=d3A.S0M;b7y+=L3u;b7y+=d3A.c0M;b7y+=d3A.k0M;var d7y=z0M;d7y+=s3u;var u7y=T3u;u7y+=i9M;u7y+=O0M;var that=this;var i,iLen,eventRet,errorNodes;var changed=d6W,allData={},changedData={};var setBuilder=DataTable[p5M][u7y][K3u];var dataSource=this[F3M][d7y];var fields=this[F3M][o4X];var editCount=this[F3M][b7y];var modifier=this[F3M][k7y];var editFields=this[F3M][P7y];var editData=this[F3M][V7y];var opts=this[F3M][f7X];var changedSubmit=opts[a7y];var submitParamsLocal;var action=this[F3M][k0X];var submitParams={"action":action,"data":{}};if(this[F3M][G7y]){var S7y=z0M;S7y+=n3u;submitParams[r3W]=this[F3M][S7y];}if(action===C0X||action===U9M){var D7y=m3u;D7y+=d3A.q0M;D7y+=d3A.c0M;D7y+=z3u;var g7y=w0X;g7y+=d3A.q0M;g7y+=C5M;$[n7W](editFields,function(idSrc,edit){var N5u="isEmptyObject";var h3u="ptyOb";var R7y=F3u;R7y+=h3u;R7y+=d3A.d0M;R7y+=j5X;var allRowData={};var changedRowData={};$[n7W](fields,function(name,field){var j5u='-many-count';var p5u=/\[.*$/;var f5u='[]';var Z5u="ndexOf";var t3u="compar";var O3u="ubmittable";var Q7y=F3M;Q7y+=O3u;var q7y=S6W;q7y+=n0M;if(edit[q7y][name]&&field[Q7y]()){var U7y=t3u;U7y+=d3A.S0M;var x7y=d3A.S0M;x7y+=Q8M;x7y+=d3A.k0M;var c7y=O0M;c7y+=Z5u;var J7y=V4X;J7y+=G8W;J7y+=e0M;var multiGet=field[t5X]();var builder=setBuilder(name);if(multiGet[idSrc]===undefined){var originalVal=field[v5u](edit[y4W]);builder(allRowData,originalVal);return;}var value=multiGet[idSrc];var manyBuilder=$[J7y](value)&&name[c7y](f5u)!==-R1M?setBuilder(name[F0W](p5u,B2W)+j5u):q7W;builder(allRowData,value);if(manyBuilder){manyBuilder(allRowData,value[h3W]);}if(action===x7y&&(!editData[name]||!field[U7y](value,editData[name][idSrc]))){builder(changedRowData,value);changed=k6W;if(manyBuilder){manyBuilder(changedRowData,value[h3W]);}}}});if(!$[N5u](allRowData)){allData[idSrc]=allRowData;}if(!$[R7y](changedRowData)){changedData[idSrc]=changedRowData;}});if(action===g7y||changedSubmit===u5W||changedSubmit===D7y&&changed){submitParams[y4W]=allData;}else if(changedSubmit===i5u&&changed){submitParams[y4W]=changedData;}else{var o7y=H5u;o7y+=d3A.k0M;o7y+=d3A.S0M;var I7y=V9M;I7y+=A5u;var l7y=E5u;l7y+=n9M;l7y+=w5u;l7y+=Q6W;var M7y=X5u;M7y+=s3M;M7y+=Y5u;M7y+=z2u;var B7y=r8M;B7y+=H5W;B7y+=d3A.S0M;var r7y=X5u;r7y+=s3M;r7y+=C5u;var W7y=d3A.q0M;W7y+=v5M;W7y+=j3X;this[F3M][W7y]=q7W;if(opts[r7y]===B7y&&(hide===undefined||hide)){this[a7u](d6W);}else if(typeof opts[M7y]===m7W){opts[u5u](this);}if(successCallback){successCallback[p1W](this);}this[l7y](d6W);this[I7y](o7y);return;}}else if(action===e7y){var y7y=B8M;y7y+=X0W;$[y7y](editFields,function(idSrc,edit){var L7y=u4W;L7y+=d3A.k0M;L7y+=d3A.q0M;submitParams[L7y][idSrc]=edit[y4W];});}this[s7y](T7y,action,submitParams);submitParamsLocal=$[K7y](k6W,{},submitParams);if(formatdata){formatdata(submitParams);}if(this[n7y](m7y,[submitParams,action])===d6W){var z7y=h9X;z7y+=d5u;z7y+=n6W;z7y+=b1W;this[z7y](d6W);return;}var submitWire=this[F3M][z4X]||this[F3M][K4u]?this[F7y]:this[h7y];submitWire[p1W](this,submitParams,function(json,notGood,xhr){var k5u="tSuccess";var b5u="_submi";var t7y=H9W;t7y+=j3X;var O7y=b5u;O7y+=k5u;that[O7y](json,notGood,submitParams,submitParamsLocal,that[F3M][t7y],editCount,hide,successCallback,errorCallback,xhr);},function(xhr,err,thrown){that[P5u](xhr,err,thrown,errorCallback,submitParams,that[F3M][k0X]);},submitParams);};Editor[j1W][V5u]=function(data,success,error,submitParams){var g5u="idual";var x5u="aFn";var c5u="ctDat";var J5u="_fnGetObje";var Q5u="Src";var S5u="SetObjectDataFn";var G5u="_fn";var a5u="emov";var N1y=T3M;N1y+=a5u;N1y+=d3A.S0M;var j1y=G5u;j1y+=S5u;var p1y=s3M;p1y+=j3W;p1y+=q5u;var f1y=d3A.S0M;f1y+=m0M;f1y+=d3A.k0M;var v1y=D4W;v1y+=Q5u;var Z1y=J5u;Z1y+=c5u;Z1y+=x5u;var that=this;var action=data[k0X];var out={data:[]};var idGet=DataTable[p5M][U5u][Z1y](this[F3M][v1y]);var idSet=DataTable[f1y][p1y][j1y](this[F3M][R5u]);if(action!==N1y){var E1y=u4W;E1y+=d3A.k0M;E1y+=d3A.q0M;var A1y=D1u;A1y+=N5M;var H1y=E0X;H1y+=T3M;var i1y=n6W;i1y+=T5W;i1y+=g5u;var originalData=this[F3M][Y5M]===c3X?this[W4X](J3X,this[C4X]()):this[W4X](i1y,this[H1y]());$[A1y](data[E1y],function(key,vals){var W5u="dataTableExt";var D5u="_fnE";var u1y=z0M;u1y+=i2u;u1y+=d3A.q0M;var Y1y=d3A.S0M;Y1y+=z0M;Y1y+=l0M;var X1y=D5u;X1y+=J6u;X1y+=u5M;var w1y=s3M;w1y+=j3W;w1y+=i9M;w1y+=O0M;var toSave;var extender=$[O2W][W5u][w1y][X1y];if(action===Y1y){var C1y=z0M;C1y+=I4W;var rowData=originalData[key][C1y];toSave=extender({},rowData,k6W);toSave=extender(toSave,vals,k6W);}else{toSave=extender({},vals,k6W);}var overrideId=idGet(toSave);if(action===S7W&&overrideId===undefined){idSet(toSave,+new Date()+B2W+key);}else{idSet(toSave,overrideId);}out[u1y][f6W](toSave);});}success(out);};Editor[d1y][b1y]=function(json,notGood,submitParams,submitParamsLocal,action,editCount,hide,successCallback,errorCallback,xhr){var U9u='submitSuccess';var x9u="Complete";var c9u="editCount";var J9u="ids";var Q9u='postRemove';var q9u='preRemove';var S9u="urc";var G9u="ataSo";var V9u="urce";var P9u="_dataSo";var k9u='commit';var b9u='postEdit';var d9u='postCreate';var u9u='preCreate';var C9u="dataSource";var Y9u='id';var X9u="tDat";var w9u='prep';var E9u="dataSou";var A9u="eve";var H9u='submitUnsuccessful';var i9u='<br>';var y5u="_ev";var e5u='receive';var o5u="postSub";var l5u="fieldErro";var r5u="submitComp";var a0y=r5u;a0y+=B5u;var V0y=E5u;V0y+=M5u;var S1y=D3M;S1y+=d3A.S0M;S1y+=w6W;S1y+=k1W;var G1y=d3A.S0M;G1y+=T3M;G1y+=n9M;G1y+=T3M;var a1y=l5u;a1y+=T3M;a1y+=F3M;var V1y=I5u;V1y+=T3M;var P1y=o5u;P1y+=s2u;var k1y=V0W;k1y+=D3M;k1y+=n0M;var that=this;var setData;var fields=this[F3M][k1y];var opts=this[F3M][f7X];var modifier=this[F3M][C4X];this[e0u](e5u,action,json);this[G0X](P1y,[json,submitParams,action,xhr]);if(!json[V1y]){json[l1W]=d3A.U0M;}if(!json[a1y]){json[B2u]=[];}if(notGood||json[G1y]||json[B2u][S1y]){var T1y=y5u;T1y+=d3A.S0M;T1y+=W3W;var s1y=d9X;s1y+=O0M;s1y+=d3A.c0M;var L1y=E1W;L1y+=n9M;L1y+=T3M;var globalError=[];if(json[l1W]){var q1y=t1W;q1y+=F3M;q1y+=N5M;globalError[q1y](json[l1W]);}$[n7W](json[B2u],function(i,err){var j9u="stat";var p9u="ldErro";var f9u="onF";var v9u="onFieldError";var Z9u="position";var t5u="imate";var O5u="_an";var h5u="yCon";var F5u='focus';var z5u="FieldError";var m5u="tu";var n5u="sta";var K5u=" field:";var T5u="Unknown";var x1y=N0W;x1y+=L5u;x1y+=X5M;var Q1y=o4W;Q1y+=z8M;Q1y+=d3A.S0M;var field=fields[err[Q1y]];if(!field){var c1y=d3A.c0M;c1y+=s5u;c1y+=d3A.S0M;var J1y=T5u;J1y+=K5u;J1y+=Q2W;throw new Error(J1y+err[c1y]);}else if(field[x1y]()){var g1y=n3M;g1y+=T3M;g1y+=T3M;g1y+=I0M;var R1y=n5u;R1y+=m5u;R1y+=F3M;var U1y=E1W;U1y+=T3M;U1y+=s3M;U1y+=T3M;field[U1y](err[R1y]||g1y);if(i===U1M){var D1y=s3M;D1y+=d3A.c0M;D1y+=z5u;if(opts[D1y]===F5u){var l1y=d3A.Q0M;l1y+=s3M;l1y+=v0W;l1y+=F3M;var M1y=d3A.c0M;M1y+=s3M;M1y+=z0M;M1y+=d3A.S0M;var B1y=C8W;B1y+=z7W;B1y+=V9W;var r1y=a2X;r1y+=h5u;r1y+=H2X;var W1y=O5u;W1y+=t5u;that[W1y]($(that[W7W][r1y],that[F3M][B1y]),{scrollTop:$(field[M1y]())[Z9u]()[X6X]},H0M);field[l1y]();}else if(typeof opts[v9u]===m7W){var I1y=f9u;I1y+=r3X;I1y+=p9u;I1y+=T3M;opts[I1y](that,err);}}}else{var y1y=j9u;y1y+=J5M;y1y+=F3M;var e1y=N9u;e1y+=Q2W;var o1y=i9M;o1y+=J5M;o1y+=E6W;globalError[o1y](field[g4W]()+e1y+(err[y1y]||c4X));}});this[L1y](globalError[s1y](i9u));this[T1y](H9u,[json]);if(errorCallback){errorCallback[p1W](that,json);}}else{var P0y=V9M;P0y+=A9u;P0y+=d3A.c0M;P0y+=d3A.k0M;var K1y=z0M;K1y+=d3A.q0M;K1y+=d3A.k0M;K1y+=d3A.q0M;var store={};if(json[K1y]&&(action===C0X||action===U9M)){var i0y=z0M;i0y+=d3A.q0M;i0y+=d3A.k0M;i0y+=d3A.q0M;var z1y=D3M;z1y+=z9X;var m1y=z0M;m1y+=d3A.q0M;m1y+=d3A.k0M;m1y+=d3A.q0M;var n1y=V9M;n1y+=E9u;n1y+=U4u;n1y+=d3A.S0M;this[n1y](w9u,action,modifier,submitParamsLocal,json,store);for(var i=U1M;i<json[m1y][z1y];i++){var f0y=R4u;f0y+=d3A.k0M;var O1y=k8X;O1y+=d3A.S0M;O1y+=w9W;var h1y=J1W;h1y+=X9u;h1y+=d3A.q0M;var F1y=V9M;F1y+=A9u;F1y+=W3W;setData=json[y4W][i];var id=this[W4X](Y9u,setData);this[F1y](h1y,[json,setData,action]);if(action===O1y){var v0y=w0X;v0y+=d3A.q0M;v0y+=C5M;var Z0y=V9M;Z0y+=C9u;var t1y=V9M;t1y+=D0X;t1y+=d9M;t1y+=d3A.k0M;this[t1y](u9u,[json,setData,id]);this[Z0y](S7W,fields,setData,store);this[G0X]([v0y,d9u],[json,setData,id]);}else if(action===f0y){var N0y=d3A.S0M;N0y+=z0M;N0y+=O0M;N0y+=d3A.k0M;var j0y=X5M;j0y+=O0M;j0y+=d3A.k0M;var p0y=i9M;p0y+=N8M;p0y+=M0M;p0y+=l0M;this[G0X](p0y,[json,setData,id]);this[W4X](j0y,modifier,fields,setData,store);this[G0X]([N0y,b9u],[json,setData,id]);}}this[W4X](k9u,action,modifier,json[i0y],store);}else if(action===c9X){var Y0y=v5M;Y0y+=s3M;Y0y+=z8M;Y0y+=s2u;var X0y=P9u;X0y+=V9u;var w0y=c9M;w0y+=a9u;w0y+=d3A.k0M;var E0y=D4W;E0y+=F3M;var A0y=i9M;A0y+=T3M;A0y+=d3A.S0M;A0y+=i9M;var H0y=m5W;H0y+=G9u;H0y+=S9u;H0y+=d3A.S0M;this[H0y](A0y,action,modifier,submitParamsLocal,json,store);this[G0X](q9u,[json,this[E0y]()]);this[W4X](q8X,modifier,fields,store);this[w0y]([q8X,Q9u],[json,this[J9u]()]);this[X0y](Y0y,action,modifier,json[y4W],store);}if(editCount===this[F3M][c9u]){var d0y=v5M;d0y+=j6X;d0y+=J1W;var u0y=L7W;u0y+=x9u;var C0y=C3u;C0y+=s3M;C0y+=d3A.c0M;var action=this[F3M][C0y];this[F3M][k0X]=q7W;if(opts[u0y]===d0y&&(hide===undefined||hide)){var k0y=u4W;k0y+=d3A.k0M;k0y+=d3A.q0M;var b0y=d5X;b0y+=N0X;b0y+=d3A.S0M;this[b0y](json[k0y]?k6W:d6W,action);}else if(typeof opts[u5u]===m7W){opts[u5u](this);}}if(successCallback){successCallback[p1W](that,json);}this[P0y](U9u,[json,setData,action]);}this[V0y](d6W);this[G0X](a0y,[json,setData,action]);};Editor[G0y][P5u]=function(xhr,err,thrown,errorCallback,submitParams,action){var r9u='submitComplete';var W9u='submitError';var D9u='postSubmit';var g9u="ste";var R9u="sin";var Q0y=m9X;Q0y+=w5u;Q0y+=R9u;Q0y+=b1W;var q0y=F3M;q0y+=e0M;q0y+=g9u;q0y+=z8M;var S0y=c9M;S0y+=a9u;S0y+=d3A.k0M;this[S0y](D9u,[q7W,submitParams,action,xhr]);this[l1W](this[X8X][l1W][q0y]);this[Q0y](d6W);if(errorCallback){var J0y=v5M;J0y+=d3A.q0M;J0y+=D3M;J0y+=D3M;errorCallback[J0y](this,xhr,err,thrown);}this[G0X]([W9u,r9u],[xhr,err,thrown,submitParams]);};Editor[c0y][x0y]=function(fn){var o9u="ubmitCom";var I9u="bServerSide";var l9u="oFeatures";var M9u="taT";var l0y=Q8M;l0y+=J8M;l0y+=e0M;var D0y=B9u;D0y+=E2W;var g0y=u4W;g0y+=M9u;g0y+=d3A.q0M;g0y+=X4X;var R0y=d3A.Q0M;R0y+=d3A.c0M;var U0y=d3A.k0M;U0y+=G3W;var that=this;var dt=this[F3M][U0y]?new $[R0y][g0y][C4W](this[F3M][D0y]):q7W;var ssp=d6W;if(dt){ssp=dt[E5W]()[U1M][l9u][I9u];}if(this[F3M][V7W]){var r0y=F3M;r0y+=o9u;r0y+=i9M;r0y+=B5u;var W0y=s3M;W0y+=d3A.c0M;W0y+=d3A.S0M;this[W0y](r0y,function(){if(ssp){var M0y=z0M;M0y+=T3M;M0y+=d3A.q0M;M0y+=w8M;var B0y=s3M;B0y+=d3A.c0M;B0y+=d3A.S0M;dt[B0y](M0y,fn);}else{setTimeout(function(){fn();},l1M);}});return k6W;}else if(this[x8M]()===u5X||this[l0y]()===o7X){var L0y=e3M;L0y+=D3M;L0y+=J5M;L0y+=T3M;this[o3W](C5W,function(){var e9u="bmitCom";if(!that[F3M][V7W]){setTimeout(function(){if(that[F3M]){fn();}},l1M);}else{var o0y=M1X;o0y+=e9u;o0y+=Z7u;var I0y=L7W;I0y+=d3A.S0M;that[I0y](o0y,function(e,json){if(ssp&&json){var y0y=y9u;y0y+=w8M;var e0y=s3M;e0y+=d3A.c0M;e0y+=d3A.S0M;dt[e0y](y0y,fn);}else{setTimeout(function(){if(that[F3M]){fn();}},l1M);}});}})[L0y]();return k6W;}return d6W;};Editor[j1W][s0y]=function(name,arr){for(var i=U1M,ien=arr[h3W];i<ien;i++){if(name==arr[i]){return i;}}return-R1M;};Editor[Q4W]={"table":q7W,"ajaxUrl":q7W,"fields":[],"display":T0y,"ajax":q7W,"idSrc":K0y,"events":{},"i18n":{"create":{"button":L9u,"title":n0y,"submit":s9u},"edit":{"button":m0y,"title":T9u,"submit":K9u},"remove":{"button":z0y,"title":n9u,"submit":n9u,"confirm":{"_":m9u,"1":F0y}},"error":{"system":h0y},multi:{title:O0y,info:z9u,restore:t0y,noMulti:Z3y},datetime:{previous:F9u,next:v3y,months:[h9u,O9u,t9u,f3y,Z8u,p3y,j3y,v8u,f8u,N3y,p8u,j8u],weekdays:[i3y,H3y,N8u,i8u,H8u,A8u,E8u],amPm:[w8u,X8u],hours:Y8u,minutes:A3y,seconds:E3y,unknown:S9X}},formOptions:{bubble:$[w3y]({},Editor[X3y][X5W],{title:d6W,message:d6W,buttons:c1X,submit:Y3y}),inline:$[C3y]({},Editor[R7W][u3y],{buttons:d6W,submit:d3y}),main:$[b3y]({},Editor[R7W][X5W])},legacyAjax:d6W};(function(){var y2G="dataSrc";var b2G="cancelled";var Y2G="owI";var w2G="any";var g8u="remov";var k8u="bServ";var u8u="ources";var C8u="taS";var k3y=u4W;k3y+=C8u;k3y+=u8u;var __dataSources=Editor[k3y]={};var __dtIsSsp=function(dt,editor){var G8u="ings";var a8u="sett";var V8u="Features";var P8u="erS";var b8u="awTyp";var d8u="dr";var S3y=d8u;S3y+=b8u;S3y+=d3A.S0M;var G3y=X5M;G3y+=l0M;G3y+=G5M;G3y+=x3W;var a3y=k8u;a3y+=P8u;a3y+=D4W;a3y+=d3A.S0M;var V3y=s3M;V3y+=V8u;var P3y=a8u;P3y+=G8u;return dt[P3y]()[U1M][V3y][a3y]&&editor[F3M][G3y][S3y]!==w0W;};var __dtApi=function(table){var q8u="taTab";var q3y=S8u;q3y+=q8u;q3y+=E2W;return $(table)[q3y]();};var __dtHighlight=function(node){node=$(node);setTimeout(function(){var c8u="addClas";var J8u="ght";var Q8u="ghli";var J3y=N5M;J3y+=O0M;J3y+=Q8u;J3y+=J8u;var Q3y=c8u;Q3y+=F3M;node[Q3y](J3y);setTimeout(function(){var R8u='highlight';var U8u='noHighlight';var x8u="addC";var A0M=550;var c3y=x8u;c3y+=Q1W;c3y+=F3M;node[c3y](U8u)[x1W](R8u);setTimeout(function(){var D8u="eCl";var x3y=g8u;x3y+=D8u;x3y+=B1W;node[x3y](U8u);},A0M);},H0M);},s1M);};var __dtRowSelector=function(out,dt,identifier,fields,idFn){var R3y=d3A.S0M;R3y+=j9X;var U3y=T3M;U3y+=t0X;dt[U3y](identifier)[W8u]()[R3y](function(idx){var r8u='Unable to find row identifier';var y1M=14;var D3y=d3A.c0M;D3y+=s3M;D3y+=z0M;D3y+=d3A.S0M;var row=dt[Y4X](idx);var data=row[y4W]();var idSrc=idFn(data);if(idSrc===undefined){var g3y=d3A.S0M;g3y+=L3M;g3y+=s3M;g3y+=T3M;Editor[g3y](r8u,y1M);}out[idSrc]={idSrc:idSrc,data:data,node:row[D3y](),fields:fields,type:p1u};});};var __dtFieldsFromIdx=function(dt,fields,idx){var o8u='Unable to automatically determine field from source. Please specify the field name.';var I8u="mData";var l8u="editField";var M8u="aoColumn";var B8u="isEmptyObj";var I3y=B8u;I3y+=j5X;var B3y=U9M;B3y+=i2W;B3y+=H2W;var r3y=M8u;r3y+=F3M;var W3y=F3M;W3y+=Y8M;W3y+=g0W;W3y+=V4W;var field;var col=dt[W3y]()[U1M][r3y][idx];var dataSrc=col[l8u]!==undefined?col[B3y]:col[I8u];var resolvedFields={};var run=function(field,dataSrc){var M3y=y0W;M3y+=d3A.S0M;if(field[M3y]()===dataSrc){var l3y=y0W;l3y+=d3A.S0M;resolvedFields[field[l3y]()]=field;}};$[n7W](fields,function(name,fieldInst){if($[x1X](dataSrc)){for(var i=U1M;i<dataSrc[h3W];i++){run(fieldInst,dataSrc[i]);}}else{run(fieldInst,dataSrc);}});if($[I3y](resolvedFields)){var o3y=I5u;o3y+=T3M;Editor[o3y](o8u,I1M);}return resolvedFields;};var __dtCellSelector=function(out,dt,identifier,allFields,idFn,forceFields){var y8u="lls";var e8u="dex";var L3y=d3A.S0M;L3y+=H9W;L3y+=N5M;var y3y=O0M;y3y+=d3A.c0M;y3y+=e8u;y3y+=U3M;var e3y=v1W;e3y+=y8u;dt[e3y](identifier)[y3y]()[L3y](function(idx){var z8u="tach";var m8u="column";var K8u="bje";var T8u="nodeN";var s8u="attac";var L8u="isplayFields";var h3y=z0M;h3y+=L8u;var F3y=d3A.S0M;F3y+=m0M;F3y+=d3A.k0M;F3y+=j5M;var z3y=i1u;z3y+=F3M;var m3y=q3W;m3y+=f3M;var n3y=s8u;n3y+=N5M;var T3y=T8u;T3y+=s5u;T3y+=d3A.S0M;var s3y=s3M;s3y+=K8u;s3y+=v5M;s3y+=d3A.k0M;var cell=dt[n8u](idx);var row=dt[Y4X](idx[Y4X]);var data=row[y4W]();var idSrc=idFn(data);var fields=forceFields||__dtFieldsFromIdx(dt,allFields,idx[m8u]);var isNode=typeof identifier===s3y&&identifier[T3y]||identifier instanceof $;var prevDisplayFields,prevAttach;if(out[idSrc]){var K3y=i2u;K3y+=z8u;prevAttach=out[idSrc][K3y];prevDisplayFields=out[idSrc][A5X];}__dtRowSelector(out,dt,idx[Y4X],allFields,idFn);out[idSrc][n3y]=prevAttach||[];out[idSrc][w4X][f6W](isNode?$(identifier)[e3X](U1M):cell[m3y]());out[idSrc][z3y]=prevDisplayFields||{};$[F3y](out[idSrc][h3y],fields);});};var __dtColumnSelector=function(out,dt,identifier,fields,idFn){var h8u="ell";var F8u="dexes";var Z5y=d3A.S0M;Z5y+=d3A.q0M;Z5y+=v5M;Z5y+=N5M;var t3y=n6W;t3y+=F8u;var O3y=v5M;O3y+=h8u;O3y+=F3M;dt[O3y](q7W,identifier)[t3y]()[Z5y](function(idx){__dtCellSelector(out,dt,idx,fields,idFn);});};var __dtjqId=function(id){var O8u='\\$1';var v5y=F3M;v5y+=d3A.k0M;v5y+=U1u;return typeof id===v5y?s3X+id[F0W](/(:|\.|\[|\]|,)/g,O8u):s3X+id;};__dataSources[l2W]={id:function(data){var f5y=s3M;f5y+=j3W;f5y+=q5u;var idFn=DataTable[p5M][f5y][e4W](this[F3M][R5u]);return idFn(data);},individual:function(identifier,fieldNames){var Z2G="tDataFn";var t8u="_fnGetObjec";var N5y=L0M;N5y+=J4X;var j5y=t8u;j5y+=Z2G;var p5y=s3M;p5y+=j3W;p5y+=i9M;p5y+=O0M;var idFn=DataTable[p5M][p5y][j5y](this[F3M][R5u]);var dt=__dtApi(this[F3M][r3W]);var fields=this[F3M][N5y];var out={};var forceFields;var responsiveNode;if(fieldNames){if(!$[x1X](fieldNames)){fieldNames=[fieldNames];}forceFields={};$[n7W](fieldNames,function(i,name){forceFields[name]=fields[name];});}__dtCellSelector(out,dt,identifier,fields,idFn,forceFields);return out;},fields:function(identifier){var i2G="cells";var N2G="ws";var j2G="mns";var p2G="colu";var v2G="ls";var E5y=v1W;E5y+=D3M;E5y+=v2G;var A5y=B9u;A5y+=E2W;var H5y=D4W;H5y+=R6u;H5y+=v5M;var i5y=d3A.S0M;i5y+=a4W;var idFn=DataTable[i5y][U5u][e4W](this[F3M][H5y]);var dt=__dtApi(this[F3M][A5y]);var fields=this[F3M][o4X];var out={};if($[N3X](identifier)&&(identifier[Z3X]!==undefined||identifier[f2G]!==undefined||identifier[E5y]!==undefined)){var X5y=p2G;X5y+=j2G;var w5y=T3M;w5y+=s3M;w5y+=N2G;if(identifier[w5y]!==undefined){__dtRowSelector(out,dt,identifier[Z3X],fields,idFn);}if(identifier[X5y]!==undefined){__dtColumnSelector(out,dt,identifier[f2G],fields,idFn);}if(identifier[i2G]!==undefined){var Y5y=v1W;Y5y+=D3M;Y5y+=v2G;__dtCellSelector(out,dt,identifier[Y5y],fields,idFn);}}else{__dtRowSelector(out,dt,identifier,fields,idFn);}return out;},create:function(fields,data){var dt=__dtApi(this[F3M][r3W]);if(!__dtIsSsp(dt,this)){var row=dt[Y4X][P4X](data);__dtHighlight(row[u4X]());}},edit:function(identifier,fields,data,store){var d2G="_fnExtend";var u2G="ableExt";var C2G="ataT";var X2G="I";var E2G="dataT";var A2G="drawType";var u5y=M9X;u5y+=j2W;var C5y=d3A.k0M;C5y+=H2G;C5y+=E2W;var that=this;var dt=__dtApi(this[F3M][C5y]);if(!__dtIsSsp(dt,this)||this[F3M][u5y][A2G]===w0W){var R5y=d3A.c0M;R5y+=s3M;R5y+=z0M;R5y+=d3A.S0M;var b5y=O0M;b5y+=z0M;var d5y=E2G;d5y+=d3A.q0M;d5y+=u2X;d5y+=d3A.S0M;var rowId=__dataSources[d5y][b5y][p1W](this,data);var row;try{row=dt[Y4X](__dtjqId(rowId));}catch(e){row=dt;}if(!row[w2G]()){var k5y=T3M;k5y+=s3M;k5y+=w8M;row=dt[k5y](function(rowIdx,rowData,rowNode){var a5y=v5M;a5y+=l8X;a5y+=D3M;var V5y=O0M;V5y+=z0M;var P5y=E2G;P5y+=G3W;return rowId==__dataSources[P5y][V5y][a5y](that,rowData);});}if(row[w2G]()){var c5y=T3M;c5y+=p2X;c5y+=X2G;c5y+=n0M;var J5y=T3M;J5y+=Y2G;J5y+=n0M;var Q5y=U6u;Q5y+=d3A.q0M;var q5y=z0M;q5y+=I4W;var S5y=z0M;S5y+=C2G;S5y+=u2G;var G5y=d3A.Q0M;G5y+=d3A.c0M;var extender=$[G5y][S5y][U5u][d2G];var toSave=extender({},row[q5y](),k6W);toSave=extender(toSave,data,k6W);row[Q5y](toSave);var idx=$[Z0X](rowId,store[J5y]);store[c5y][n4X](idx,R1M);}else{var U5y=d3A.q0M;U5y+=z0M;U5y+=z0M;var x5y=T3M;x5y+=s3M;x5y+=w8M;row=dt[x5y][U5y](data);}__dtHighlight(row[R5y]());}},remove:function(identifier,fields,store){var k2G="every";var D5y=D3M;D5y+=d3A.S0M;D5y+=Y6W;D5y+=N5M;var g5y=d3A.k0M;g5y+=H2G;g5y+=E2W;var that=this;var dt=__dtApi(this[F3M][g5y]);var cancelled=store[b2G];if(cancelled[D5y]===U1M){var r5y=N8M;r5y+=z8M;r5y+=s3M;r5y+=x9M;var W5y=T3M;W5y+=t0X;dt[W5y](identifier)[r5y]();}else{var e5y=c8W;e5y+=x9M;var o5y=T3M;o5y+=s3M;o5y+=w8M;o5y+=F3M;var B5y=T3M;B5y+=t0X;var indexes=[];dt[B5y](identifier)[k2G](function(){var M5y=w1u;M5y+=T3M;M5y+=v6X;var id=__dataSources[l2W][D4W][p1W](that,this[y4W]());if($[M5y](id,cancelled)===-R1M){var I5y=n6W;I5y+=z0M;I5y+=R5M;var l5y=i9M;l5y+=b7X;l5y+=N5M;indexes[l5y](this[I5y]());}});dt[o5y](indexes)[e5y]();}},prep:function(action,identifier,submit,json,store){var a2G="cancel";var V2G="cancelle";var y5y=X5M;y5y+=l0M;if(action===y5y){var L5y=T3M;L5y+=Y2G;L5y+=n0M;var cancelled=json[b2G]||[];store[L5y]=$[G3X](submit[y4W],function(val,key){var P2G="tyObj";var T5y=u4W;T5y+=d3A.k0M;T5y+=d3A.q0M;var s5y=F3u;s5y+=i9M;s5y+=P2G;s5y+=j5X;return!$[s5y](submit[T5y][key])&&$[Z0X](key,cancelled)===-R1M?key:undefined;});}else if(action===q8X){var n5y=V2G;n5y+=z0M;var K5y=a2G;K5y+=E2W;K5y+=z0M;store[K5y]=json[n5y]||[];}},commit:function(action,identifier,data,store){var c2G="ures";var J2G="oFeat";var Q2G="rSide";var q2G="rowIds";var S2G="Typ";var G2G="draw";var p9y=G2G;p9y+=S2G;p9y+=d3A.S0M;var f9y=U9M;f9y+=G5M;f9y+=x3W;var z5y=T3M;z5y+=Y2G;z5y+=n0M;var m5y=X5M;m5y+=l0M;var that=this;var dt=__dtApi(this[F3M][r3W]);if(!__dtIsSsp(dt,this)&&action===m5y&&store[z5y][h3W]){var ids=store[q2G];var row;var compare=function(id){return function(rowIdx,rowData,rowNode){var F5y=O0M;F5y+=z0M;return id==__dataSources[l2W][F5y][p1W](that,rowData);};};for(var i=U1M,ien=ids[h3W];i<ien;i++){var Z9y=k8u;Z9y+=d3A.S0M;Z9y+=Q2G;var t5y=J2G;t5y+=c2G;var O5y=P4W;O5y+=V4W;try{var h5y=T3M;h5y+=s3M;h5y+=w8M;row=dt[h5y](__dtjqId(ids[i]));}catch(e){row=dt;}if(!row[w2G]()){row=dt[Y4X](compare(ids[i]));}if(row[w2G]()&&!dt[O5y]()[U1M][t5y][Z9y]){var v9y=g8u;v9y+=d3A.S0M;row[v9y]();}}}var drawType=this[F3M][f9y][p9y];if(drawType!==w0W){dt[G2G](drawType);}}};function __html_id(identifier){var W2G="Could not find an element with `data-editor-id` or `id` of:";var D2G="stri";var g2G="itor-id=\"";var R2G="ata-e";var U2G="[d";var x2G="yl";var j9y=o1u;j9y+=x2G;j9y+=d3A.S0M;j9y+=k9W;var context=document;if(identifier!==j9y){var E9y=T1W;E9y+=k1W;var H9y=d1W;H9y+=x0W;H9y+=N5M;var i9y=M6W;i9y+=s7u;var N9y=U2G;N9y+=R2G;N9y+=z0M;N9y+=g2G;context=$(N9y+identifier+i9y);if(context[H9y]===U1M){var A9y=D2G;A9y+=w6W;context=typeof identifier===A9y?$(__dtjqId(identifier)):$(identifier);}if(context[E9y]===U1M){var w9y=W2G;w9y+=Q2W;throw w9y+identifier;}}return context;}function __html_el(identifier,name){var l2G="field=\"";var M2G="itor-";var B2G="data-ed";var r2G="[";var X9y=r2G;X9y+=B2G;X9y+=M2G;X9y+=l2G;var context=__html_id(identifier);return $(X9y+name+v6W,context);}function __html_els(identifier,names){var out=$();for(var i=U1M,ien=names[h3W];i<ien;i++){var Y9y=d3A.q0M;Y9y+=z0M;Y9y+=z0M;out=out[Y9y](__html_el(identifier,names[i]));}return out;}function __html_get(identifier,dataSrc){var e2G='data-editor-value';var o2G="editor-value]";var I2G="[data-";var b9y=i2u;b9y+=d3A.k0M;b9y+=T3M;var d9y=d1W;d9y+=X6W;var u9y=I2G;u9y+=o2G;var C9y=g8X;C9y+=C5M;C9y+=T3M;var el=__html_el(identifier,dataSrc);return el[C9y](u9y)[d9y]?el[b9y](e2G):el[b0W]();}function __html_set(identifier,fields,data){var k9y=d3A.S0M;k9y+=d3A.q0M;k9y+=X0W;$[k9y](fields,function(name,field){var T2G="-editor-valu";var s2G='[data-editor-value]';var val=field[v5u](data);if(val!==undefined){var el=__html_el(identifier,field[y2G]());if(el[L2G](s2G)[h3W]){var P9y=z0M;P9y+=I4W;P9y+=T2G;P9y+=d3A.S0M;el[y1X](P9y,val);}else{el[n7W](function(){var m2G="removeChild";var n2G="Child";var K2G="childNodes";var V9y=D3M;V9y+=z9X;while(this[K2G][V9y]){var a9y=L0M;a9y+=T3M;a9y+=d3W;a9y+=n2G;this[m2G](this[a9y]);}})[b0W](val);}}});}__dataSources[b0W]={id:function(data){var h2G="taFn";var F2G="jectDa";var z2G="_fnGetO";var G9y=z2G;G9y+=e3M;G9y+=F2G;G9y+=h2G;var idFn=DataTable[p5M][U5u][G9y](this[F3M][R5u]);return idFn(data);},initField:function(cfg){var Z6G="or-label=\"";var t2G="-edit";var O2G="[data";var Q9y=R6W;Q9y+=e3M;Q9y+=d3A.S0M;Q9y+=D3M;var q9y=z0M;q9y+=I4W;var S9y=O2G;S9y+=t2G;S9y+=Z6G;var label=$(S9y+(cfg[q9y]||cfg[g4W])+v6W);if(!cfg[Q9y]&&label[h3W]){var J9y=R6W;J9y+=k1X;J9y+=D3M;cfg[J9y]=label[b0W]();}},individual:function(identifier,fieldNames){var w6G='Cannot automatically determine field name from data source';var E6G="keyl";var A6G='editor-id';var H6G='andSelf';var i6G='data-editor-field';var j6G="dBac";var p6G="Bac";var f6G="-id]";var v6G="[data-editor";var o9y=d3A.S0M;o9y+=j9X;var I9y=v5M;I9y+=d3A.q0M;I9y+=E2u;var l9y=V0W;l9y+=t2u;var M9y=B8X;M9y+=N5M;var c9y=q3W;c9y+=f3M;c9y+=E9X;var attachEl;if(identifier instanceof $||identifier[c9y]){var r9y=u4W;r9y+=d3A.k0M;r9y+=d3A.q0M;var W9y=v6G;W9y+=f6G;var D9y=D3W;D9y+=d3A.c0M;D9y+=j2W;var g9y=P4X;g9y+=p6G;g9y+=G6W;var R9y=d3A.q0M;R9y+=z0M;R9y+=j6G;R9y+=G6W;var U9y=d3A.Q0M;U9y+=d3A.c0M;attachEl=identifier;if(!fieldNames){var x9y=N6G;x9y+=T3M;fieldNames=[$(identifier)[x9y](i6G)];}var back=$[U9y][R9y]?g9y:H6G;identifier=$(identifier)[D9y](W9y)[back]()[r9y](A6G);}if(!identifier){var B9y=E6G;B9y+=d3A.S0M;B9y+=F3M;B9y+=F3M;identifier=B9y;}if(fieldNames&&!$[x1X](fieldNames)){fieldNames=[fieldNames];}if(!fieldNames||fieldNames[M9y]===U1M){throw w6G;}var out=__dataSources[b0W][l9y][I9y](this,identifier);var fields=this[F3M][o4X];var forceFields={};$[n7W](fieldNames,function(i,name){forceFields[name]=fields[name];});$[o9y](out,function(id,set){var C6G="tac";var Y6G="toA";var X6G="layFi";var s9y=A0X;s9y+=X6G;s9y+=J4X;var L9y=Y6G;L9y+=I5X;var y9y=d3A.q0M;y9y+=d3A.k0M;y9y+=C6G;y9y+=N5M;var e9y=v5M;e9y+=d3A.S0M;e9y+=E2u;set[C9M]=e9y;set[y9y]=attachEl?$(attachEl):__html_els(identifier,fieldNames)[L9y]();set[o4X]=fields;set[s9y]=forceFields;});return out;},fields:function(identifier){var d6G='keyless';var n9y=D1u;n9y+=N5M;var K9y=V0W;K9y+=D3M;K9y+=z0M;K9y+=F3M;var out={};var self=__dataSources[b0W];if($[x1X](identifier)){for(var i=U1M,ien=identifier[h3W];i<ien;i++){var T9y=u6G;T9y+=D3M;T9y+=D3M;var res=self[o4X][T9y](this,identifier[i]);out[identifier[i]]=res[identifier[i]];}return out;}var data={};var fields=this[F3M][K9y];if(!identifier){identifier=d6G;}$[n9y](fields,function(name,field){var b6G="lToDat";var m9y=A8M;m9y+=b6G;m9y+=d3A.q0M;var val=__html_get(identifier,field[y2G]());field[m9y](data,val===q7W?undefined:val);});out[identifier]={idSrc:identifier,data:data,node:document,fields:fields,type:p1u};return out;},create:function(fields,data){if(data){var id=__dataSources[b0W][D4W][p1W](this,data);try{if(__html_id(id)[h3W]){__html_set(id,fields,data);}}catch(e){}}},edit:function(identifier,fields,data){var F9y=o1u;F9y+=e0M;F9y+=R8X;F9y+=F3M;var z9y=v5M;z9y+=d3A.q0M;z9y+=D3M;z9y+=D3M;var id=__dataSources[b0W][D4W][z9y](this,data)||F9y;__html_set(id,fields,data);},remove:function(identifier,fields){var h9y=g8u;h9y+=d3A.S0M;__html_id(identifier)[h9y]();}};}());Editor[O9y]={"wrapper":t9y,"processing":{"indicator":Z8y,"active":v8y},"header":{"wrapper":k6G,"content":P6G},"body":{"wrapper":f8y,"content":V6G},"footer":{"wrapper":a6G,"content":p8y},"form":{"wrapper":G6G,"content":S6G,"tag":d3A.U0M,"info":q6G,"error":j8y,"buttons":Q6G,"button":N8y,"buttonInternal":i8y},"field":{"wrapper":H8y,"typePrefix":A8y,"namePrefix":E8y,"label":J6G,"input":c6G,"inputControl":w8y,"error":x6G,"msg-label":U6G,"msg-error":R6G,"msg-message":X8y,"msg-info":Y8y,"multiValue":C8y,"multiInfo":g6G,"multiRestore":D6G,"multiNoEdit":W6G,"disabled":o7W,"processing":r6G},"actions":{"create":B6G,"edit":u8y,"remove":d8y},"inline":{"wrapper":M6G,"liner":l6G,"buttons":I6G},"bubble":{"wrapper":b8y,"liner":o6G,"table":k8y,"close":P8y,"pointer":e6G,"bg":y6G}};(function(){var t4G="removeSingle";var O4G='selectedSingle';var h4G="editSingle";var B4G='buttons-remove';var W4G="formTitle";var Y4G="editor_remove";var A4G="formBu";var H4G="select_single";var i4G="editor_edit";var N4G="formButtons";var j4G="ools";var p4G="TableT";var f4G="TONS";var v4G="BU";var Z4G="editor_cre";var t6G="tex";var O6G="ableTools";var F6G="s-create";var z6G="ecte";var T6G="Single";var s6G="ectedSingle";var N6Y=L6G;N6Y+=s6G;var j6Y=d3A.S0M;j6Y+=m0M;j6Y+=C5M;j6Y+=u5M;var p6Y=d3A.S0M;p6Y+=a4W;p6Y+=d9M;p6Y+=z0M;var f6Y=d3A.S0M;f6Y+=z0M;f6Y+=O0M;f6Y+=d3A.k0M;var v6Y=U9M;v6Y+=T6G;var r2Y=T3M;r2Y+=p2X;r2Y+=F3M;var W2Y=K6G;W2Y+=X5M;var P2Y=H0u;P2Y+=n6G;P2Y+=m6G;P2Y+=U9M;var d2Y=F3M;d2Y+=G8M;d2Y+=z6G;d2Y+=z0M;var j2Y=w8X;j2Y+=d3A.c0M;j2Y+=F6G;var t8y=d3A.S0M;t8y+=m0M;t8y+=h6G;var O8y=H0u;O8y+=L7W;O8y+=F3M;var h8y=d3A.S0M;h8y+=a4W;var V8y=Z5M;V8y+=O6G;if(DataTable[V8y]){var Q8y=t6G;Q8y+=d3A.k0M;var q8y=R5M;q8y+=h6G;var S8y=Z4G;S8y+=w9W;var G8y=v4G;G8y+=Z5M;G8y+=f4G;var a8y=p4G;a8y+=j4G;var ttButtons=DataTable[a8y][G8y];var ttButtonBase={sButtonText:q7W,editor:q7W,formTitle:q7W};ttButtons[S8y]=$[q8y](k6W,ttButtons[Q8y],ttButtonBase,{formButtons:[{label:q7W,fn:function(e){var J8y=M1X;J8y+=D3u;this[J8y]();}}],fnClick:function(button,config){var U8y=k8X;U8y+=i4X;U8y+=d3A.S0M;var x8y=O0M;x8y+=d3A.G0M;x8y+=t0M;x8y+=d3A.c0M;var c8y=X5M;c8y+=l0M;c8y+=I0M;var editor=config[c8y];var i18nCreate=editor[x8y][C0X];var buttons=config[N4G];if(!buttons[U1M][F4W]){buttons[U1M][F4W]=i18nCreate[U3W];}editor[U8y]({title:i18nCreate[H7W],buttons:buttons});}});ttButtons[i4G]=$[U4W](k6W,ttButtons[H4G],ttButtonBase,{formButtons:[{label:q7W,fn:function(e){var R8y=L2u;R8y+=z8M;R8y+=O0M;R8y+=d3A.k0M;this[R8y]();}}],fnClick:function(button,config){var X4G="ctedIndexes";var w4G="tSel";var E4G="fnGe";var l8y=d3A.S0M;l8y+=z0M;l8y+=l0M;var r8y=A4G;r8y+=q5X;var W8y=d3A.S0M;W8y+=z0M;W8y+=l0M;var D8y=E2W;D8y+=w6W;D8y+=k1W;var g8y=E4G;g8y+=w4G;g8y+=d3A.S0M;g8y+=X4G;var selected=this[g8y]();if(selected[D8y]!==R1M){return;}var editor=config[H8X];var i18nEdit=editor[X8X][W8y];var buttons=config[r8y];if(!buttons[U1M][F4W]){var M8y=F3M;M8y+=J5M;M8y+=D3u;var B8y=D3M;B8y+=u0W;buttons[U1M][B8y]=i18nEdit[M8y];}editor[l8y](selected[U1M],{title:i18nEdit[H7W],buttons:buttons});}});ttButtons[Y4G]=$[U4W](k6W,ttButtons[K6G],ttButtonBase,{question:q7W,formButtons:[{label:q7W,fn:function(e){var that=this;this[U3W](function(json){var b4G="fnGetInstance";var d4G="ataTab";var u4G="None";var C4G="fnSel";var e8y=C4G;e8y+=j5X;e8y+=u4G;var o8y=d4W;o8y+=X4X;var I8y=B3M;I8y+=d4G;I8y+=D3M;I8y+=d3A.S0M;var tt=$[O2W][l2W][n6u][b4G]($(that[F3M][r3W])[I8y]()[o8y]()[u4X]());tt[e8y]();});}}],fnClick:function(button,config){var a4G="tedIndexes";var V4G="GetSelec";var P4G="itor";var k4G="onfi";var F8y=N8M;F8y+=r5X;var z8y=J2W;z8y+=m6u;z8y+=d3A.S0M;var n8y=Y0W;n8y+=d3A.S0M;n8y+=D3M;var K8y=D3M;K8y+=d9M;K8y+=b1W;K8y+=k1W;var T8y=v5M;T8y+=k4G;T8y+=T3M;T8y+=z8M;var s8y=A4G;s8y+=A1X;s8y+=s3M;s8y+=f5X;var L8y=d3A.S0M;L8y+=z0M;L8y+=P4G;var y8y=O2W;y8y+=V4G;y8y+=a4G;var rows=this[y8y]();if(rows[h3W]===U1M){return;}var editor=config[L8y];var i18nRemove=editor[X8X][c9X];var buttons=config[s8y];var question=typeof i18nRemove[Y8X]===z0W?i18nRemove[Y8X]:i18nRemove[T8y][rows[h3W]]?i18nRemove[Y8X][rows[K8y]]:i18nRemove[Y8X][V9M];if(!buttons[U1M][n8y]){var m8y=D3M;m8y+=H2G;m8y+=G8M;buttons[U1M][m8y]=i18nRemove[U3W];}editor[z8y](rows,{message:question[F8y](/%d/g,rows[h3W]),title:i18nRemove[H7W],buttons:buttons});}});}var _buttons=DataTable[h8y][O8y];$[t8y](_buttons,{create:{text:function(dt,node,config){var G4G='buttons.create';var p2Y=i7X;p2Y+=A1X;p2Y+=L7W;var f2Y=k8X;f2Y+=d3A.S0M;f2Y+=i2u;f2Y+=d3A.S0M;var v2Y=O0M;v2Y+=d3A.G0M;v2Y+=t0M;v2Y+=d3A.c0M;var Z2Y=S4W;Z2Y+=t0M;Z2Y+=d3A.c0M;return dt[Z2Y](G4G,config[H8X][v2Y][f2Y][p2Y]);},className:j2Y,editor:q7W,formButtons:{text:function(editor){var i2Y=k8X;i2Y+=d3A.S0M;i2Y+=w9W;var N2Y=O0M;N2Y+=d3A.G0M;N2Y+=t0M;N2Y+=d3A.c0M;return editor[N2Y][i2Y][U3W];},action:function(e){var H2Y=L2u;H2Y+=z8M;H2Y+=O0M;H2Y+=d3A.k0M;this[H2Y]();}},formMessage:q7W,formTitle:q7W,action:function(e,dt,node,config){var J4G="creat";var q4G="formMessa";var S4G="Title";var u2Y=g0W;u2Y+=d3A.k0M;u2Y+=D3M;u2Y+=d3A.S0M;var C2Y=k8X;C2Y+=d3A.S0M;C2Y+=i2u;C2Y+=d3A.S0M;var Y2Y=O0M;Y2Y+=d3A.G0M;Y2Y+=t0M;Y2Y+=d3A.c0M;var X2Y=K8M;X2Y+=x9X;X2Y+=S4G;var w2Y=q4G;w2Y+=Q4G;var E2Y=J4G;E2Y+=d3A.S0M;var A2Y=z3M;A2Y+=Q6W;var that=this;var editor=config[H8X];var buttons=config[N4G];this[A2Y](k6W);editor[o3W](G3u,function(){that[V7W](d6W);})[E2Y]({buttons:config[N4G],message:config[w2Y],title:config[X2Y]||editor[Y2Y][C2Y][u2Y]});}},edit:{extend:d2Y,text:function(dt,node,config){var c4G="uttons.e";var k2Y=w8X;k2Y+=d3A.c0M;var b2Y=e3M;b2Y+=c4G;b2Y+=B5X;return dt[X8X](b2Y,config[H8X][X8X][U9M][k2Y]);},className:P2Y,editor:q7W,formButtons:{text:function(editor){var V2Y=M1X;V2Y+=l1X;V2Y+=d3A.k0M;return editor[X8X][U9M][V2Y];},action:function(e){this[U3W]();}},formMessage:q7W,formTitle:q7W,action:function(e,dt,node,config){var D4G="xes";var g4G="exes";var R4G="rocessi";var U4G="reOpe";var x4G="Message";var D2Y=d3A.k0M;D2Y+=O0M;D2Y+=s1u;D2Y+=d3A.S0M;var g2Y=d3A.S0M;g2Y+=B5X;var R2Y=A4G;R2Y+=s9X;R2Y+=f5X;var U2Y=e1X;U2Y+=x4G;var x2Y=d3A.S0M;x2Y+=z0M;x2Y+=l0M;var c2Y=i9M;c2Y+=U4G;c2Y+=d3A.c0M;var J2Y=i9M;J2Y+=R4G;J2Y+=d3A.c0M;J2Y+=b1W;var Q2Y=D3M;Q2Y+=d3A.S0M;Q2Y+=d3A.c0M;Q2Y+=X6W;var q2Y=n8u;q2Y+=F3M;var S2Y=j9W;S2Y+=g4G;var G2Y=O0M;G2Y+=M0X;G2Y+=D4G;var a2Y=d3A.S0M;a2Y+=B5X;a2Y+=s3M;a2Y+=T3M;var that=this;var editor=config[a2Y];var rows=dt[Z3X]({selected:k6W})[G2Y]();var columns=dt[f2G]({selected:k6W})[S2Y]();var cells=dt[q2Y]({selected:k6W})[W8u]();var items=columns[Q2Y]||cells[h3W]?{rows:rows,columns:columns,cells:cells}:rows;this[J2Y](k6W);editor[o3W](c2Y,function(){that[V7W](d6W);})[x2Y](items,{message:config[U2Y],buttons:config[R2Y],title:config[W4G]||editor[X8X][g2Y][D2Y]});}},remove:{extend:W2Y,limitTo:[r2Y],text:function(dt,node,config){var r4G='buttons.remove';var B2Y=O0M;B2Y+=d3A.G0M;B2Y+=q4W;return dt[X8X](r4G,config[H8X][B2Y][c9X][w5W]);},className:B4G,editor:q7W,formButtons:{text:function(editor){var M4G="ub";var l2Y=F3M;l2Y+=M4G;l2Y+=l4G;l2Y+=d3A.k0M;var M2Y=J2W;M2Y+=s3M;M2Y+=e7W;M2Y+=d3A.S0M;return editor[X8X][M2Y][l2Y];},action:function(e){var I2Y=M1X;I2Y+=e3M;I2Y+=l4G;I2Y+=d3A.k0M;this[I2Y]();}},formMessage:function(editor,dt){var s4G="18n";var L4G="confir";var y4G="ri";var e4G="onfir";var o4G="nfirm";var I4G="irm";var n2Y=d1W;n2Y+=b1W;n2Y+=d3A.k0M;n2Y+=N5M;var K2Y=H1W;K2Y+=d3A.Q0M;K2Y+=I4G;var T2Y=D3M;T2Y+=d3A.S0M;T2Y+=d3A.c0M;T2Y+=X6W;var s2Y=i2X;s2Y+=o4G;var L2Y=v5M;L2Y+=e4G;L2Y+=z8M;var y2Y=d3W;y2Y+=y4G;y2Y+=d3A.c0M;y2Y+=b1W;var e2Y=L4G;e2Y+=z8M;var o2Y=O0M;o2Y+=s4G;var rows=dt[Z3X]({selected:k6W})[W8u]();var i18n=editor[o2Y][c9X];var question=typeof i18n[e2Y]===y2Y?i18n[Y8X]:i18n[L2Y][rows[h3W]]?i18n[s2Y][rows[T2Y]]:i18n[K2Y][V9M];return question[F0W](/%d/g,rows[n2Y]);},formTitle:q7W,action:function(e,dt,node,config){var F4G="formMessage";var z4G="ocessin";var m4G="Open";var n4G="inde";var K4G="formButton";var T4G="titl";var Z6Y=T4G;Z6Y+=d3A.S0M;var t2Y=K4G;t2Y+=F3M;var O2Y=n4G;O2Y+=m0M;O2Y+=U3M;var F2Y=q9M;F2Y+=d3A.S0M;F2Y+=m4G;var z2Y=L7W;z2Y+=d3A.S0M;var m2Y=i9M;m2Y+=T3M;m2Y+=z4G;m2Y+=b1W;var that=this;var editor=config[H8X];this[m2Y](k6W);editor[z2Y](F2Y,function(){var h2Y=i9M;h2Y+=M5u;that[h2Y](d6W);})[c9X](dt[Z3X]({selected:k6W})[O2Y](),{buttons:config[t2Y],message:config[F4G],title:config[W4G]||editor[X8X][c9X][Z6Y]});}}});_buttons[v6Y]=$[U4W]({},_buttons[f6Y]);_buttons[h4G][p6Y]=O4G;_buttons[t4G]=$[j6Y]({},_buttons[c9X]);_buttons[t4G][U4W]=N6Y;}());Editor[J4W]={};Editor[Z7G]=function(input,opts){var w1G=/[haA]/;var E1G=/[Hhm]|LT|LTS/;var H1G=/[YMD]|L(?!T)|l/;var N1G='editor-dateime-';var j1G='-error';var p1G='-calendar';var f1G='-time">';var v1G='-calendar"/>';var Z1G='<select class="';var t7G='<span/>';var O7G='-label">';var F7G='<button>';var z7G='-iconRight">';var m7G='-iconLeft">';var e7G="Editor datetime: Without momentjs only the format 'YYYY-MM-DD' can be used";var o7G='YYYY-MM-DD';var l7G="teT";var M7G="defaul";var B7G="sPrefix";var r7G="-date";var W7G="-titl";var g7G="ious";var R7G="button>";var U7G="lect class=\"";var x7G="<s";var c7G="\"/>";var Q7G="-mo";var q7G="=";var G7G="-year\"/";var a7G="lass=\"";var V7G=" c";var P7G="<div";var k7G="<div ";var b7G="rs\"/>";var u7G="es\"/>";var C7G="-minut";var Y7G="\"/";var w7G="-s";var A7G="div c";var H7G="ror\"/>";var i7G="-er";var j7G="rmat";var p7G="Of";var f7G="rma";var t6Y=z0M;t6Y+=s3M;t6Y+=z8M;var O6Y=d3A.q0M;O6Y+=j2X;O6Y+=d9M;O6Y+=z0M;var h6Y=v7G;h6Y+=z0M;var F6Y=z0M;F6Y+=d3A.q0M;F6Y+=C5M;var z6Y=H1W;z6Y+=M1W;var m6Y=d3A.Q0M;m6Y+=s3M;m6Y+=f7G;m6Y+=d3A.k0M;var n6Y=O0M;n6Y+=M0X;n6Y+=m0M;n6Y+=p7G;var K6Y=K8M;K6Y+=j7G;var T6Y=g3W;T6Y+=v5M;T6Y+=N5M;var s6Y=P7X;s6Y+=d3A.k0M;s6Y+=v5M;s6Y+=N5M;var L6Y=d3A.Q0M;L6Y+=I0M;L6Y+=g3W;var y6Y=m6G;y6Y+=N7G;var e6Y=d3A.Q0M;e6Y+=O0M;e6Y+=d3A.c0M;e6Y+=z0M;var o6Y=m6G;o6Y+=d3A.k0M;o6Y+=l0M;o6Y+=E2W;var I6Y=m6G;I6Y+=z0M;I6Y+=d3A.q0M;I6Y+=C5M;var l6Y=d3A.Q0M;l6Y+=O0M;l6Y+=d3A.c0M;l6Y+=z0M;var M6Y=i7G;M6Y+=H7G;var B6Y=W6W;B6Y+=A7G;B6Y+=E7G;B6Y+=v4W;var r6Y=a5W;r6Y+=Q8M;r6Y+=e7W;r6Y+=l6W;var W6Y=w7G;W6Y+=X7G;W6Y+=Y7G;W6Y+=l6W;var D6Y=C7G;D6Y+=u7G;var g6Y=m6G;g6Y+=d7G;g6Y+=b7G;var R6Y=k7G;R6Y+=W1X;R6Y+=v4W;var U6Y=c7X;U6Y+=e7W;U6Y+=l6W;var x6Y=P7G;x6Y+=V7G;x6Y+=a7G;var c6Y=G7G;c6Y+=l6W;var J6Y=S7G;J6Y+=q7G;J6Y+=M6W;var Q6Y=W6W;Q6Y+=r6W;var q6Y=Q7G;q6Y+=J7G;q6Y+=c7G;var S6Y=x7G;S6Y+=d3A.S0M;S6Y+=U7G;var G6Y=C1W;G6Y+=a4W;var a6Y=W6W;a6Y+=T5W;a6Y+=T6W;var V6Y=a5W;V6Y+=R7G;var P6Y=i9M;P6Y+=T3M;P6Y+=D0X;P6Y+=g7G;var k6Y=D7G;k6Y+=l6W;var b6Y=W7G;b6Y+=d3A.S0M;b6Y+=M6W;b6Y+=l6W;var d6Y=r7G;d6Y+=M6W;d6Y+=l6W;var u6Y=M6W;u6Y+=l6W;var E6Y=a5X;E6Y+=P7X;E6Y+=d3A.k0M;var A6Y=r8M;A6Y+=d3A.q0M;A6Y+=F3M;A6Y+=B7G;var H6Y=M7G;H6Y+=j2W;var i6Y=S8u;i6Y+=l7G;i6Y+=h0M;this[v5M]=$[U4W](k6W,{},Editor[i6Y][H6Y],opts);var classPrefix=this[v5M][A6Y];var i18n=this[v5M][X8X];if(!window[I7G]&&this[v5M][E6Y]!==o7G){throw e7G;}var timeBlock=function(type){var T7G="v class";var s7G="ck\"";var L7G="-timeb";var y7G="/di";var Y6Y=W6W;Y6Y+=y7G;Y6Y+=x7X;var X6Y=L7G;X6Y+=j6X;X6Y+=s7G;X6Y+=l6W;var w6Y=N4W;w6Y+=T7G;w6Y+=v4W;return w6Y+classPrefix+X6Y+Y6Y;};var gap=function(){var n7G="/span>";var K7G="<span>:<";var C6Y=K7G;C6Y+=n7G;return C6Y;};var structure=$(n7X+classPrefix+u6Y+n7X+classPrefix+d6Y+n7X+classPrefix+b6Y+n7X+classPrefix+m7G+k6Y+i18n[P6Y]+V6Y+Z7W+a6Y+classPrefix+z7G+F7G+i18n[G6Y]+h7G+Z7W+n7X+classPrefix+O7G+t7G+S6Y+classPrefix+q6Y+Q6Y+J6Y+classPrefix+O7G+t7G+Z1G+classPrefix+c6Y+Z7W+Z7W+x6Y+classPrefix+v1G+U6Y+n7X+classPrefix+f1G+R6Y+classPrefix+g6Y+n7X+classPrefix+D6Y+n7X+classPrefix+W6Y+r6Y+B6Y+classPrefix+M6Y+Z7W);this[W7W]={container:structure,date:structure[l6Y](W5X+classPrefix+I6Y),title:structure[D5X](W5X+classPrefix+o6Y),calendar:structure[D5X](W5X+classPrefix+p1G),time:structure[e6Y](W5X+classPrefix+y6Y),error:structure[D5X](W5X+classPrefix+j1G),input:$(input)};this[F3M]={d:q7W,display:q7W,minutesRange:q7W,secondsRange:q7W,namespace:N1G+Editor[Z7G][i1G]++,parts:{date:this[v5M][L6Y][s6Y](H1G)!==q7W,time:this[v5M][A1G][T6Y](E1G)!==q7W,seconds:this[v5M][K6Y][n6Y](M2W)!==-R1M,hours12:this[v5M][m6Y][J1u](w1G)!==q7W}};this[W7W][z6Y][k0W](this[W7W][F6Y])[h6Y](this[W7W][N7G])[k0W](this[W7W][l1W]);this[W7W][L0X][O6Y](this[W7W][H7W])[k0W](this[t6Y][X1G]);this[z2W]();};$[U4W](Editor[Z7G][Z4Y],{destroy:function(){var k1G="_hi";var C1G="r-datetime";var Y1G=".edito";var i4Y=Y1G;i4Y+=C1G;var N4Y=F2X;N4Y+=d3A.Q0M;var j4Y=u1G;j4Y+=d1G;var p4Y=z0M;p4Y+=s3M;p4Y+=z8M;var f4Y=d3A.S0M;f4Y+=z8M;f4Y+=b1G;f4Y+=e0M;var v4Y=k1G;v4Y+=z0M;v4Y+=d3A.S0M;this[v4Y]();this[W7W][o1W][a6X]()[f4Y]();this[p4Y][j4Y][N4Y](i4Y);},errorMsg:function(msg){var error=this[W7W][l1W];if(msg){error[b0W](msg);}else{var H4Y=d3A.S0M;H4Y+=z8M;H4Y+=P1G;error[H4Y]();}},hide:function(){this[E2X]();},max:function(date){var V1G="etCalan";var A4Y=U3u;A4Y+=V1G;A4Y+=g9M;this[v5M][a1G]=date;this[G1G]();this[A4Y]();},min:function(date){var E4Y=U3u;E4Y+=S1G;this[v5M][q1G]=date;this[G1G]();this[E4Y]();},owns:function(node){var Q1G="filt";var X4Y=z0M;X4Y+=s3M;X4Y+=z8M;var w4Y=Q1G;w4Y+=d3A.S0M;w4Y+=T3M;return $(node)[K5X]()[w4Y](this[X4Y][o1W])[h3W]>U1M;},val:function(set,write){var T1G="toString";var s1G="eToU";var e1G=/(\d{4})\-(\d{2})\-(\d{2})/;var o1G="matc";var I1G="toDate";var l1G="isValid";var M1G="momentStrict";var B1G="tc";var r1G="tLocal";var W1G="momen";var D1G="Utc";var g1G="eTo";var R1G="_dat";var U1G="etTit";var x1G="ande";var c1G="_setC";var J1G="_setTi";var q4Y=J1G;q4Y+=z8M;q4Y+=d3A.S0M;var S4Y=c1G;S4Y+=l8X;S4Y+=x1G;S4Y+=T3M;var G4Y=U3u;G4Y+=U1G;G4Y+=E2W;var a4Y=N0W;a4Y+=L5u;if(set===undefined){return this[F3M][z0M];}if(set instanceof Date){var Y4Y=R1G;Y4Y+=g1G;Y4Y+=D1G;this[F3M][z0M]=this[Y4Y](set);}else if(set===q7W||set===B2W){this[F3M][z0M]=q7W;}else if(typeof set===z0W){if(window[I7G]){var u4Y=W1G;u4Y+=r1G;u4Y+=d3A.S0M;var C4Y=J5M;C4Y+=B1G;var m=window[I7G][C4Y](set,this[v5M][A1G],this[v5M][u4Y],this[v5M][M1G]);this[F3M][z0M]=m[l1G]()?m[I1G]():q7W;}else{var b4Y=A0W;b4Y+=Z5M;b4Y+=D6X;var d4Y=o1G;d4Y+=N5M;var match=set[d4Y](e1G);this[F3M][z0M]=match?new Date(Date[b4Y](match[R1M],match[g1M]-R1M,match[D1M])):q7W;}}if(write||write===undefined){if(this[F3M][z0M]){this[y1G]();}else{var P4Y=e7W;P4Y+=d3A.q0M;P4Y+=D3M;var k4Y=z0M;k4Y+=w1W;this[k4Y][L1G][P4Y](set);}}if(!this[F3M][z0M]){var V4Y=V9M;V4Y+=U6u;V4Y+=s1G;V4Y+=B1G;this[F3M][z0M]=this[V4Y](new Date());}this[F3M][a4Y]=new Date(this[F3M][z0M][T1G]());this[F3M][x8M][K1G](R1M);this[G4Y]();this[S4Y]();this[q4Y]();},_constructor:function(){var h0G="setSe";var K0G="_setTime";var e0G="ou";var l0G="urs";var r0G="_setCalander";var U0G="_setTitle";var S0G="hasClas";var d0G='select';var C0G='keyup.editor-datetime';var Y0G=':visible';var E0G='focus.editor-datetime click.editor-datetime';var A0G='off';var i0G='-seconds';var N0G="ldr";var j0G="ren";var p0G="im";var f0G="parts";var h1G="Pre";var F1G="art";var m1G="optionsTi";var n1G="autoco";var g7Y=r8M;g7Y+=O0M;g7Y+=v5M;g7Y+=G6W;var R7Y=s3M;R7Y+=d3A.c0M;var A7Y=s3M;A7Y+=d3A.c0M;var H7Y=z0M;H7Y+=s3M;H7Y+=z8M;var f7Y=s3M;f7Y+=d3A.c0M;var K4Y=s3M;K4Y+=d3A.c0M;var T4Y=n1G;T4Y+=C5u;var s4Y=n6W;s4Y+=Z0W;var L4Y=V9M;L4Y+=m1G;L4Y+=i0u;var l4Y=F3M;l4Y+=d3A.b0M;l4Y+=s3M;l4Y+=z1G;var M4Y=i9M;M4Y+=F1G;M4Y+=F3M;var Q4Y=W1X;Q4Y+=h1G;Q4Y+=L0M;Q4Y+=m0M;var that=this;var classPrefix=this[v5M][Q4Y];var onChange=function(){var t1G="nC";var U4Y=z0M;U4Y+=s3M;U4Y+=z8M;var x4Y=O0M;x4Y+=O1G;x4Y+=J5M;x4Y+=d3A.k0M;var c4Y=L1W;c4Y+=z8M;var J4Y=s3M;J4Y+=t1G;J4Y+=Z0G;J4Y+=v0G;that[v5M][J4Y][p1W](that,that[c4Y][x4Y][U0W](),that[F3M][z0M],that[U4Y][L1G]);};if(!this[F3M][f0G][L0X]){var D4Y=v5M;D4Y+=F3M;D4Y+=F3M;var g4Y=u4W;g4Y+=C5M;var R4Y=z0M;R4Y+=s3M;R4Y+=z8M;this[R4Y][g4Y][D4Y](x7W,w0W);}if(!this[F3M][f0G][N7G]){var B4Y=q3W;B4Y+=d3A.c0M;B4Y+=d3A.S0M;var r4Y=d3A.k0M;r4Y+=p0G;r4Y+=d3A.S0M;var W4Y=z0M;W4Y+=s3M;W4Y+=z8M;this[W4Y][r4Y][E0W](x7W,B4Y);}if(!this[F3M][M4Y][l4Y]){var y4Y=v5M;y4Y+=q2X;y4Y+=z0M;y4Y+=j0G;var e4Y=L1W;e4Y+=z8M;var o4Y=X0W;o4Y+=O0M;o4Y+=N0G;o4Y+=d9M;var I4Y=z0M;I4Y+=w1W;this[I4Y][N7G][o4Y](P7u+classPrefix+i0G)[c9X]();this[e4Y][N7G][y4Y](H0G)[T9X](R1M)[c9X]();}this[L4Y]();this[W7W][s4Y][y1X](T4Y,A0G)[K4Y](E0G,function(){var X0G="disab";var v7Y=V9M;v7Y+=F3M;v7Y+=B5W;v7Y+=w8M;var Z7Y=e7W;Z7Y+=d3A.q0M;Z7Y+=D3M;var t4Y=w0G;t4Y+=d3A.k0M;var O4Y=z0M;O4Y+=s3M;O4Y+=z8M;var h4Y=e7W;h4Y+=d3A.q0M;h4Y+=D3M;var F4Y=N9u;F4Y+=X0G;F4Y+=D3M;F4Y+=X5M;var z4Y=z0M;z4Y+=s3M;z4Y+=z8M;var m4Y=v5M;m4Y+=L7W;m4Y+=M1W;var n4Y=z0M;n4Y+=s3M;n4Y+=z8M;if(that[n4Y][m4Y][p3W](Y0G)||that[z4Y][L1G][p3W](F4Y)){return;}that[h4Y](that[O4Y][t4Y][Z7Y](),d6W);that[v7Y]();})[f7Y](C0G,function(){var u0G="ain";var j7Y=O0M;j7Y+=F3M;var p7Y=i2X;p7Y+=W3W;p7Y+=u0G;p7Y+=E1W;if(that[W7W][p7Y][j7Y](Y0G)){var i7Y=e7W;i7Y+=d3A.q0M;i7Y+=D3M;var N7Y=u1G;N7Y+=d1G;that[U0W](that[W7W][N7Y][i7Y](),d6W);}});this[H7Y][o1W][A7Y](l0X,d0G,function(){var F0G="_setT";var z0G="tpu";var m0G="iteOu";var n0G="_wr";var L0G='-ampm';var y0G='-hours';var o0G="etUTCH";var I0G="12";var B0G="_set";var D0G="TCFull";var g0G="etU";var R0G='-year';var x0G="_correctMonth";var c0G="lander";var J0G="_setCa";var Q0G='-month';var q0G="Cla";var a0G="-h";var V0G="asClas";var P0G="mpm";var k0G="sC";var b0G="inut";var U7Y=L1W;U7Y+=z8M;var Q7Y=L6W;Q7Y+=b0G;Q7Y+=U3M;var q7Y=Z0G;q7Y+=k0G;q7Y+=E7G;var d7Y=m6G;d7Y+=d3A.q0M;d7Y+=P0G;var u7Y=N5M;u7Y+=V0G;u7Y+=F3M;var C7Y=a0G;C7Y+=G0G;var X7Y=S0G;X7Y+=F3M;var E7Y=z1W;E7Y+=q0G;E7Y+=F3M;E7Y+=F3M;var select=$(this);var val=select[U0W]();if(select[E7Y](classPrefix+Q0G)){var w7Y=J0G;w7Y+=c0G;that[x0G](that[F3M][x8M],val);that[U0G]();that[w7Y]();}else if(select[X7Y](classPrefix+R0G)){var Y7Y=F3M;Y7Y+=g0G;Y7Y+=D0G;Y7Y+=W0G;that[F3M][x8M][Y7Y](val);that[U0G]();that[r0G]();}else if(select[I7W](classPrefix+C7Y)||select[u7Y](classPrefix+d7Y)){var S7Y=B0G;S7Y+=M0G;S7Y+=i3M;var b7Y=B5W;b7Y+=l0G;b7Y+=I0G;if(that[F3M][f0G][b7Y]){var G7Y=F3M;G7Y+=o0G;G7Y+=e0G;G7Y+=l2u;var a7Y=i9M;a7Y+=z8M;var V7Y=A8M;V7Y+=D3M;var P7Y=e7W;P7Y+=d3A.q0M;P7Y+=D3M;var k7Y=d3A.Q0M;k7Y+=j9W;var hours=$(that[W7W][o1W])[k7Y](W5X+classPrefix+y0G)[P7Y]()*R1M;var pm=$(that[W7W][o1W])[D5X](W5X+classPrefix+L0G)[V7Y]()===a7Y;that[F3M][z0M][G7Y](hours===o1M&&!pm?U1M:pm&&hours!==o1M?hours+o1M:hours);}else{that[F3M][z0M][s0G](val);}that[S7Y]();that[y1G](k6W);onChange();}else if(select[q7Y](classPrefix+Q7Y)){that[F3M][z0M][T0G](val);that[K0G]();that[y1G](k6W);onChange();}else if(select[I7W](classPrefix+i0G)){var x7Y=n0G;x7Y+=m0G;x7Y+=z0G;x7Y+=d3A.k0M;var c7Y=F0G;c7Y+=O0M;c7Y+=i3M;var J7Y=h0G;J7Y+=i2X;J7Y+=z1G;that[F3M][z0M][J7Y](val);that[c7Y]();that[x7Y](k6W);onChange();}that[U7Y][L1G][y7W]();that[O0G]();})[R7Y](g7Y,function(e){var f5G="setUTCFullYear";var v5G="eToUtc";var Z5G="tUTCDa";var t3G="UTCMon";var O3G="utput";var h3G="rite";var F3G="_w";var m3G='setUTCHours';var n3G="etUTCHour";var K3G="getUTCHo";var T3G="getUTCHours";var s3G="UTCHours";var L3G="secondsRange";var y3G="ang";var e3G="ndsR";var o3G="seco";var I3G="asCl";var l3G="nutesRang";var M3G="minutesRan";var r3G='unit';var g3G="setUTCMi";var U3G="setTime";var x3G="tMonth";var c3G="_corr";var J3G="Month";var Q3G="getUTC";var q3G="nder";var S3G="setCala";var G3G='-iconRight';var V3G="onth";var P3G="tUTCM";var k3G="isplay";var b3G='-iconLeft';var d3G='range';var Y3G="hasC";var X3G="-tim";var E3G="stopPropagation";var A3G="nodeName";var H3G="deName";var i3G="erCase";var N3G="toLow";var p3G="arentNode";var f3G="ase";var v3G="erC";var Z3G="toL";var e7Y=i7X;e7Y+=d3A.k0M;e7Y+=t0G;var o7Y=Z3G;o7Y+=p2X;o7Y+=v3G;o7Y+=f3G;var I7Y=d3A.k0M;I7Y+=d3A.q0M;I7Y+=T3M;I7Y+=e3X;var l7Y=i9M;l7Y+=p3G;var M7Y=d3A.k0M;M7Y+=j3G;M7Y+=d3A.S0M;M7Y+=d3A.k0M;var B7Y=F3M;B7Y+=V1W;B7Y+=d3A.c0M;var r7Y=N3G;r7Y+=i3G;var W7Y=q3W;W7Y+=H3G;var D7Y=d4W;D7Y+=T3M;D7Y+=e3X;var d=that[F3M][z0M];var nodeName=e[D7Y][W7Y][r7Y]();var target=nodeName===B7Y?e[M7Y][l7Y]:e[I7Y];nodeName=target[A3G][o7Y]();if(nodeName===d0G){return;}e[E3G]();if(nodeName===e7Y){var p1Y=E2W;p1Y+=w3G;var f1Y=X3G;f1Y+=d3A.S0M;var s7Y=S0G;s7Y+=F3M;var L7Y=Y3G;L7Y+=Q1W;L7Y+=F3M;var y7Y=i9M;y7Y+=C3G;y7Y+=d3A.c0M;y7Y+=d3A.k0M;var button=$(target);var parent=button[y7Y]();if(parent[L7Y](u3G)&&!parent[s7Y](d3G)){button[p7X]();return;}if(parent[I7W](classPrefix+b3G)){var m7Y=K8M;m7Y+=d7X;var n7Y=n6W;n7Y+=i9M;n7Y+=d1G;var K7Y=z0M;K7Y+=k3G;var T7Y=J1W;T7Y+=P3G;T7Y+=V3G;that[F3M][x8M][T7Y](that[F3M][K7Y][a3G]()-R1M);that[U0G]();that[r0G]();that[W7W][n7Y][m7Y]();}else if(parent[I7W](classPrefix+G3G)){var v1Y=d3A.Q0M;v1Y+=s3M;v1Y+=v0W;v1Y+=F3M;var Z1Y=L1W;Z1Y+=z8M;var t7Y=V9M;t7Y+=S3G;t7Y+=q3G;var O7Y=Q3G;O7Y+=J3G;var h7Y=z0M;h7Y+=v2X;h7Y+=v6X;var F7Y=A0X;F7Y+=D3M;F7Y+=v6X;var z7Y=c3G;z7Y+=d3A.b0M;z7Y+=x3G;that[z7Y](that[F3M][F7Y],that[F3M][h7Y][O7Y]()+R1M);that[U0G]();that[t7Y]();that[Z1Y][L1G][v1Y]();}else if(button[K5X](W5X+classPrefix+f1Y)[p1Y]){var V1Y=V9M;V1Y+=U3G;var P1Y=h0G;P1Y+=R3G;P1Y+=F3M;var k1Y=g3G;k1Y+=d3A.c0M;k1Y+=P5M;k1Y+=F3M;var b1Y=D3G;b1Y+=J5M;b1Y+=d3A.k0M;b1Y+=U3M;var d1Y=N5M;d1Y+=e0G;d1Y+=T3M;d1Y+=F3M;var Y1Y=i9M;Y1Y+=z8M;var w1Y=d3A.q0M;w1Y+=z8M;var i1Y=F3M;i1Y+=X7G;var val=button[y4W](W3G);var unit=button[y4W](r3G);if(unit===B3G){if(parent[I7W](u3G)&&parent[I7W](d3G)){var j1Y=M3G;j1Y+=Q4G;that[F3M][j1Y]=val;that[K0G]();return;}else{var N1Y=l4G;N1Y+=l3G;N1Y+=d3A.S0M;that[F3M][N1Y]=q7W;}}if(unit===i1Y){var A1Y=T3M;A1Y+=d3A.q0M;A1Y+=d3A.c0M;A1Y+=Q4G;var H1Y=N5M;H1Y+=I3G;H1Y+=B1W;if(parent[H1Y](u3G)&&parent[I7W](A1Y)){var E1Y=o3G;E1Y+=e3G;E1Y+=y3G;E1Y+=d3A.S0M;that[F3M][E1Y]=val;that[K0G]();return;}else{that[F3M][L3G]=q7W;}}if(val===w1Y){var X1Y=b1W;X1Y+=Y8M;X1Y+=s3G;if(d[X1Y]()>=o1M){val=d[T3G]()-o1M;}else{return;}}else if(val===Y1Y){var C1Y=K3G;C1Y+=l0G;if(d[C1Y]()<o1M){var u1Y=b1W;u1Y+=n3G;u1Y+=F3M;val=d[u1Y]()+o1M;}else{return;}}var set=unit===d1Y?m3G:unit===b1Y?k1Y:P1Y;d[set](val);that[V1Y]();that[y1G](k6W);onChange();}else{var c1Y=i9M;c1Y+=d3A.q0M;c1Y+=z3G;c1Y+=F3M;var J1Y=F3G;J1Y+=h3G;J1Y+=G5M;J1Y+=O3G;var Q1Y=z0M;Q1Y+=d3A.q0M;Q1Y+=e0M;var q1Y=Z5W;q1Y+=t3G;q1Y+=k1W;var S1Y=e0M;S1Y+=d3A.S0M;S1Y+=d3A.q0M;S1Y+=T3M;var G1Y=F3M;G1Y+=d3A.S0M;G1Y+=Z5G;G1Y+=C5M;if(!d){var a1Y=W9M;a1Y+=d3A.k0M;a1Y+=v5G;d=that[a1Y](new Date());}d[G1Y](R1M);d[f5G](button[y4W](S1Y));d[q1Y](button[y4W](p5G));d[K1G](button[y4W](Q1Y));that[J1Y](k6W);if(!that[F3M][c1Y][N7G]){setTimeout(function(){that[E2X]();},l1M);}else{var x1Y=U3u;x1Y+=S1G;that[x1Y]();}onChange();}}else{var R1Y=d3A.Q0M;R1Y+=s3M;R1Y+=v5M;R1Y+=b7X;var U1Y=z0M;U1Y+=s3M;U1Y+=z8M;that[U1Y][L1G][R1Y]();}});},_compareDates:function(a,b){var H5G="_dateToUtcString";var i5G="cString";var N5G="Ut";var j5G="_dateTo";var g1Y=j5G;g1Y+=N5G;g1Y+=i5G;return this[H5G](a)===this[g1Y](b);},_correctMonth:function(date,month){var u5G="setUTCMont";var X5G="Date";var W1Y=A5G;W1Y+=s3M;W1Y+=W3W;W1Y+=N5M;var D1Y=E5G;D1Y+=w5G;D1Y+=X5G;var days=this[Y5G](date[C5G](),month);var correctDays=date[D1Y]()>days;date[W1Y](month);if(correctDays){var r1Y=u5G;r1Y+=N5M;date[K1G](days);date[r1Y](month);}},_daysInMonth:function(year,month){var O1M=31;var h1M=30;var F1M=29;var z1M=28;var isLeap=year%W1M===U1M&&(year%j0M!==U1M||year%i0M===U1M);var months=[O1M,isLeap?F1M:z1M,O1M,h1M,O1M,h1M,O1M,O1M,h1M,O1M,h1M,O1M];return months[month];},_dateToUtc:function(s){var G5G="getSeconds";var a5G="getMinutes";var V5G="llYear";var P5G="getFu";var k5G="getM";var b5G="getDat";var d5G="getH";var o1Y=d5G;o1Y+=G0G;var I1Y=b5G;I1Y+=d3A.S0M;var l1Y=k5G;l1Y+=s3M;l1Y+=J7G;var M1Y=P5G;M1Y+=V5G;var B1Y=A0W;B1Y+=Z5M;B1Y+=D6X;return new Date(Date[B1Y](s[M1Y](),s[l1Y](),s[I1Y](),s[o1Y](),s[a5G](),s[G5G]()));},_dateToUtcString:function(d){var Q5G="CFullYea";var S5G="TCDate";var y1Y=E5G;y1Y+=S5G;var e1Y=q5G;e1Y+=Q5G;e1Y+=T3M;return d[e1Y]()+S9X+this[J5G](d[a3G]()+R1M)+S9X+this[J5G](d[y1Y]());},_hide:function(){var r5G="namespace";var W5G="ontai";var D5G="deta";var g5G="wn.";var R5G="keydo";var U5G="oll.";var x5G="scr";var c5G="ck.";var m1Y=k8W;m1Y+=c5G;var n1Y=s3M;n1Y+=d3A.Q0M;n1Y+=d3A.Q0M;var K1Y=x5G;K1Y+=U5G;var T1Y=R5G;T1Y+=g5G;var s1Y=D5G;s1Y+=X0W;var L1Y=v5M;L1Y+=W5G;L1Y+=g1W;var namespace=this[F3M][r5G];this[W7W][L1Y][s1Y]();$(window)[a6X](W5X+namespace);$(document)[a6X](T1Y+namespace);$(n6X)[a6X](K1Y+namespace);$(x9W)[n1Y](m1Y+namespace);},_hours24To12:function(val){return val===U1M?o1M:val>o1M?val-o1M:val;},_htmlDay:function(day){var N9G='" data-day="';var j9G="month";var p9G='" data-month="';var f9G='data-year="';var v9G='" class="';var Z9G="day";var t5G='<td data-day="';var O5G="elect";var h5G="isabl";var F5G='selectable';var z5G='<td class="empty"></td>';var m5G="ssPrefix";var T5G="lected";var s5G="on class=\"";var y5G="utto";var e5G="utton\" ";var o5G="pe=\"b";var I5G=" ty";var l5G="-day\"";var M5G="ear";var B5G="pan";var C0Y=z0M;C0Y+=d3A.q0M;C0Y+=e0M;var Y0Y=W6W;Y0Y+=F3M;Y0Y+=B5G;Y0Y+=l6W;var X0Y=e0M;X0Y+=M5G;var w0Y=l5G;w0Y+=I5G;w0Y+=o5G;w0Y+=e5G;var E0Y=m6G;E0Y+=e3M;E0Y+=y5G;E0Y+=L5G;var A0Y=W6W;A0Y+=H0u;A0Y+=s5G;var H0Y=M6W;H0Y+=l6W;var i0Y=d3A.d0M;i0Y+=s3M;i0Y+=n6W;var p0Y=F3M;p0Y+=d3A.S0M;p0Y+=T5G;var Z0Y=d3A.k0M;Z0Y+=s3M;Z0Y+=z0M;Z0Y+=v6X;var h1Y=z0M;h1Y+=K5G;h1Y+=n5G;var F1Y=G4X;F1Y+=m5G;var z1Y=r9X;z1Y+=P1G;if(day[z1Y]){return z5G;}var classes=[F5G];var classPrefix=this[v5M][F1Y];if(day[h1Y]){var t1Y=z0M;t1Y+=h5G;t1Y+=X5M;var O1Y=t1W;O1Y+=E6W;classes[O1Y](t1Y);}if(day[Z0Y]){var f0Y=d3A.c0M;f0Y+=s3M;f0Y+=w8M;var v0Y=i9M;v0Y+=J5M;v0Y+=F3M;v0Y+=N5M;classes[v0Y](f0Y);}if(day[p0Y]){var N0Y=F3M;N0Y+=O5G;N0Y+=d3A.S0M;N0Y+=z0M;var j0Y=i9M;j0Y+=J5M;j0Y+=E6W;classes[j0Y](N0Y);}return t5G+day[Z9G]+v9G+classes[i0Y](T4W)+H0Y+A0Y+classPrefix+E0Y+classPrefix+w0Y+f9G+day[X0Y]+p9G+day[j9G]+N9G+day[Z9G]+z4W+Y0Y+day[C0Y]+E7W+h7G+i9G;},_htmlMonth:function(year,month){var L9G='<tbody>';var y9G='<table class="';var e9G="iconRight";var o9G="onLeft";var I9G="-ic";var l9G="ekNumber";var M9G=" we";var D9G="_htmlWeekOfYear";var g9G="shif";var R9G="showWeekNumber";var U9G="_htmlDay";var x9G="disableDays";var c9G="_compareDates";var J9G="UTC";var Q9G="eDates";var q9G="ompar";var S9G="isArr";var G9G="CHours";var a9G="etUT";var V9G="setSeconds";var P9G="tes";var b9G="getUTCDay";var d9G="oUtc";var u9G="_dateT";var C9G="head>";var Y9G="<t";var X9G="thHead";var w9G="Mon";var A9G="thead>";var H9G="</ta";var T1M=23;var L0Y=H9G;L0Y+=X4X;L0Y+=l6W;var y0Y=d9X;y0Y+=O0M;y0Y+=d3A.c0M;var e0Y=W6W;e0Y+=p6u;e0Y+=A9G;var o0Y=E9G;o0Y+=m3W;o0Y+=w9G;o0Y+=X9G;var I0Y=Y9G;I0Y+=C9G;var b0Y=z8M;b0Y+=n6W;b0Y+=j3M;b0Y+=d3A.S0M;var d0Y=A0W;d0Y+=Z5M;d0Y+=D6X;var u0Y=u9G;u0Y+=d9G;var now=this[u0Y](new Date()),days=this[Y5G](year,month),before=new Date(Date[d0Y](year,month,R1M))[b9G](),data=[],row=[];if(this[v5M][k9G]>U1M){before-=this[v5M][k9G];if(before<U1M){before+=B1M;}}var cells=days+before,after=cells;while(after>B1M){after-=B1M;}cells+=B1M-after;var minDate=this[v5M][b0Y];var maxDate=this[v5M][a1G];if(minDate){var k0Y=A5G;k0Y+=n6W;k0Y+=J5M;k0Y+=P9G;minDate[s0G](U1M);minDate[k0Y](U1M);minDate[V9G](U1M);}if(maxDate){var P0Y=F3M;P0Y+=a9G;P0Y+=G9G;maxDate[P0Y](T1M);maxDate[T0G](f0M);maxDate[V9G](f0M);}for(var i=U1M,r=U1M;i<cells;i++){var a0Y=S9G;a0Y+=v6X;var V0Y=d5X;V0Y+=q9G;V0Y+=Q9G;var day=new Date(Date[J9G](year,month,R1M+(i-before))),selected=this[F3M][z0M]?this[V0Y](day,this[F3M][z0M]):d6W,today=this[c9G](day,now),empty=i<before||i>=days+before,disabled=minDate&&day<minDate||maxDate&&day>maxDate;var disableDays=this[v5M][x9G];if($[a0Y](disableDays)&&$[Z0X](day[b9G](),disableDays)!==-R1M){disabled=k6W;}else if(typeof disableDays===m7W&&disableDays(day)===k6W){disabled=k6W;}var dayConfig={day:R1M+(i-before),month:month,year:year,selected:selected,today:today,disabled:disabled,empty:empty};row[f6W](this[U9G](dayConfig));if(++r===B1M){var q0Y=W6W;q0Y+=d3A.k0M;q0Y+=T3M;q0Y+=l6W;var S0Y=i9M;S0Y+=e4X;if(this[v5M][R9G]){var G0Y=J5M;G0Y+=d3A.c0M;G0Y+=g9G;G0Y+=d3A.k0M;row[G0Y](this[D9G](i-before,month,year));}data[S0Y](q0Y+row[G9X](B2W)+W9G);row=[];r=U1M;}}var classPrefix=this[v5M][r9G];var className=classPrefix+B9G;if(this[v5M][R9G]){var Q0Y=M9G;Q0Y+=l9G;className+=Q0Y;}if(minDate){var g0Y=d3A.c0M;g0Y+=o3W;var R0Y=Q8M;R0Y+=u1W;R0Y+=T8M;var U0Y=v5M;U0Y+=F3M;U0Y+=F3M;var x0Y=I9G;x0Y+=o9G;var c0Y=z0M;c0Y+=O0M;c0Y+=e7W;c0Y+=g0M;var J0Y=d3A.Q0M;J0Y+=O0M;J0Y+=u5M;var underMin=minDate>=new Date(Date[J9G](year,month,R1M,U1M,U1M,U1M));this[W7W][H7W][J0Y](c0Y+classPrefix+x0Y)[U0Y](R0Y,underMin?g0Y:s0W);}if(maxDate){var l0Y=v5M;l0Y+=F3M;l0Y+=F3M;var M0Y=m6G;M0Y+=e9G;var B0Y=z0M;B0Y+=O0M;B0Y+=e7W;B0Y+=g0M;var r0Y=g0W;r0Y+=s1u;r0Y+=d3A.S0M;var W0Y=z0M;W0Y+=s3M;W0Y+=z8M;var D0Y=A0W;D0Y+=w5G;var overMax=maxDate<new Date(Date[D0Y](year,month+R1M,R1M,U1M,U1M,U1M));this[W0Y][r0Y][D5X](B0Y+classPrefix+M0Y)[l0Y](x7W,overMax?w0W:s0W);}return y9G+className+z4W+I0Y+this[o0Y]()+e0Y+L9G+data[y0Y](B2W)+s9G+L0Y;},_htmlMonthHead:function(){var O9G='</th>';var h9G='<th>';var F9G="/th>";var z9G="><";var K9G="mber";var T9G="showWeekN";var s0Y=T9G;s0Y+=J5M;s0Y+=K9G;var a=[];var firstDay=this[v5M][k9G];var i18n=this[v5M][X8X];var dayName=function(day){var n9G="weekdays";day+=firstDay;while(day>=B1M){day-=B1M;}return i18n[n9G][day];};if(this[v5M][s0Y]){var K0Y=m9G;K0Y+=z9G;K0Y+=F9G;var T0Y=t1W;T0Y+=E6W;a[T0Y](K0Y);}for(var i=U1M;i<B1M;i++){a[f6W](h9G+dayName(i)+O9G);}return a[G9X](B2W);},_htmlWeekOfYear:function(d,m,y){var N8G="getDay";var j8G="getDate";var p8G="setDate";var f8G=" class";var Z8G="eek";var t9G="-w";var X0M=86400000;var z0Y=t9G;z0Y+=Z8G;z0Y+=G6u;var m0Y=W6W;m0Y+=v8G;m0Y+=f8G;m0Y+=v4W;var n0Y=v5M;n0Y+=d3A.S0M;n0Y+=O0M;n0Y+=D3M;var date=new Date(y,m,d,U1M,U1M,U1M,U1M);date[p8G](date[j8G]()+W1M-(date[N8G]()||B1M));var oneJan=new Date(y,U1M,R1M);var weekNum=Math[n0Y](((date-oneJan)/X0M+R1M)/B1M);return m0Y+this[v5M][r9G]+z0Y+weekNum+i9G;},_options:function(selector,values,labels){var w8G='<option value="';var E8G="n>";var A8G="optio";var h0Y=D3M;h0Y+=z9X;var F0Y=z0M;F0Y+=s3M;F0Y+=z8M;if(!labels){labels=values;}var select=this[F0Y][o1W][D5X](i8G+this[v5M][r9G]+S9X+selector);select[H8G]();for(var i=U1M,ien=values[h0Y];i<ien;i++){var Z3Y=W6W;Z3Y+=p6u;Z3Y+=A8G;Z3Y+=E8G;var t0Y=M6W;t0Y+=l6W;var O0Y=v7G;O0Y+=z0M;select[O0Y](w8G+values[i]+t0Y+labels[i]+Z3Y);}},_optionSet:function(selector,val){var d8G="ix";var u8G="ef";var C8G="classPr";var Y8G="ion:selected";var X8G="kno";var H3Y=f5W;H3Y+=X8G;H3Y+=w8M;H3Y+=d3A.c0M;var i3Y=d3A.k0M;i3Y+=p5M;var N3Y=D3M;N3Y+=z9X;var j3Y=s3M;j3Y+=b1G;j3Y+=Y8G;var p3Y=e7W;p3Y+=d3A.q0M;p3Y+=D3M;var f3Y=V1W;f3Y+=T3M;f3Y+=d9M;f3Y+=d3A.k0M;var v3Y=C8G;v3Y+=u8G;v3Y+=d8G;var select=this[W7W][o1W][D5X](i8G+this[v5M][v3Y]+S9X+selector);var span=select[f3Y]()[F9W](H0G);select[p3Y](val);var selected=select[D5X](j3Y);span[b0W](selected[N3Y]!==U1M?selected[i3Y]():this[v5M][X8X][H3Y]);},_optionsTime:function(unit,count,val,allowed,range){var z8G='</table>';var m8G="floor";var n8G="/tr>";var K8G="ody></thead><table class=\"";var T8G="</tb";var s8G="dy>";var L8G="pace\"><t";var y8G="-nos";var e8G="<tr";var o8G='<tr>';var I8G="amPm";var l8G="r>";var c8G="pad";var J8G="mpt";var Q8G="e cl";var q8G="<tabl";var S8G="an=\"";var G8G="d><tr><th colsp";var a8G="/thead>";var V8G="tr><";var P8G="></";var k8G="</th";var b8G="<tb";var I3Y=b8G;I3Y+=q6X;I3Y+=l6W;var l3Y=k8G;l3Y+=P8G;l3Y+=V8G;l3Y+=a8G;var M3Y=M6W;M3Y+=l6W;var B3Y=m9G;B3Y+=B8M;B3Y+=G8G;B3Y+=S8G;var r3Y=M6W;r3Y+=l6W;var W3Y=q8G;W3Y+=Q8G;W3Y+=U6X;W3Y+=T8W;var D3Y=M5W;D3Y+=d9M;D3Y+=z0M;var g3Y=d3A.S0M;g3Y+=J8G;g3Y+=e0M;var w3Y=O0M;w3Y+=d3A.G0M;w3Y+=t0M;w3Y+=d3A.c0M;var E3Y=V9M;E3Y+=c8G;var A3Y=j4X;A3Y+=c2W;A3Y+=C1W;A3Y+=T3M;var classPrefix=this[v5M][r9G];var container=this[W7W][A3Y][D5X](P7u+classPrefix+S9X+unit);var i,j;var render=count===o1M?function(i){return i;}:this[E3Y];var classPrefix=this[v5M][r9G];var className=classPrefix+B9G;var i18n=this[v5M][w3Y];if(!container[h3W]){return;}var a=B2W;var span=l1M;var button=function(value,label,className){var M8G='-day" type="button" data-unit="';var B8G='<td class="selectable ';var r8G=' disabled';var W8G='number';var D8G="ss=\"";var g8G="<button cla";var R8G="-bu";var U8G="\" data-value";var a3Y=W6W;a3Y+=p6u;a3Y+=v8G;a3Y+=l6W;var V3Y=x8G;V3Y+=d3A.q0M;V3Y+=d3A.c0M;V3Y+=l6W;var P3Y=M6W;P3Y+=l6W;var k3Y=U8G;k3Y+=v4W;var b3Y=R8G;b3Y+=A1X;b3Y+=s3M;b3Y+=L5G;var d3Y=g8G;d3Y+=D8G;var u3Y=M6W;u3Y+=l6W;var C3Y=F3M;C3Y+=G8M;C3Y+=j5X;C3Y+=X5M;var Y3Y=i9M;Y3Y+=z8M;var X3Y=d3A.q0M;X3Y+=z8M;if(count===o1M&&val>=o1M&&typeof value===W8G){value+=o1M;}var selected=val===value||value===X3Y&&val<o1M||value===Y3Y&&val>=o1M?C3Y:B2W;if(allowed&&$[Z0X](value,allowed)===-R1M){selected+=r8G;}if(className){selected+=T4W+className;}return B8G+selected+u3Y+d3Y+classPrefix+b3Y+classPrefix+M8G+unit+k3Y+value+P3Y+V3Y+label+E7W+h7G+a3Y;};if(count===o1M){var Q3Y=a5W;Q3Y+=d3A.k0M;Q3Y+=T3M;Q3Y+=l6W;var q3Y=W6W;q3Y+=d3A.k0M;q3Y+=l8G;var S3Y=d3A.q0M;S3Y+=z8M;var G3Y=W6W;G3Y+=d3A.k0M;G3Y+=T3M;G3Y+=l6W;a+=G3Y;for(i=R1M;i<=r1M;i++){a+=button(i,render(i));}a+=button(S3Y,i18n[I8G][U1M]);a+=W9G;a+=q3Y;for(i=B1M;i<=o1M;i++){a+=button(i,render(i));}a+=button(X8u,i18n[I8G][R1M]);a+=Q3Y;span=B1M;}else if(count===K1M){var c=U1M;for(j=U1M;j<W1M;j++){a+=o8G;for(i=U1M;i<r1M;i++){a+=button(c,render(c));c++;}a+=W9G;}span=r1M;}else{var R3Y=e8G;R3Y+=l6W;var U3Y=y8G;U3Y+=L8G;U3Y+=P1W;U3Y+=s8G;var x3Y=T8G;x3Y+=K8G;var c3Y=W6W;c3Y+=n8G;a+=o8G;for(j=U1M;j<p0M;j+=l1M){var J3Y=T3M;J3Y+=R3W;J3Y+=Q4G;a+=button(j,render(j),J3Y);}a+=c3Y;a+=x3Y+className+T4W+className+U3Y;var start=range!==q7W?range:Math[m8G](val/l1M)*l1M;a+=R3Y;for(j=start+R1M;j<start+l1M;j++){a+=button(j,render(j));}a+=W9G;span=r1M;}container[g3Y]()[D3Y](W3Y+className+r3Y+B3Y+span+M3Y+i18n[unit]+l3Y+I3Y+a+s9G+z8G);},_optionsTitle:function(){var H2A="months";var N2A="_options";var j2A="getFullYear";var p2A="axDat";var f2A="getFullYe";var v2A="Ye";var Z2A="getFull";var t8G="year";var O8G="yearRang";var h8G="ar";var F8G="ye";var K3Y=F8G;K3Y+=h8G;var T3Y=O8G;T3Y+=d3A.S0M;var s3Y=t8G;s3Y+=W9X;s3Y+=R3W;s3Y+=Q4G;var L3Y=Z2A;L3Y+=v2A;L3Y+=h8G;var y3Y=f2A;y3Y+=h8G;var e3Y=z8M;e3Y+=p2A;e3Y+=d3A.S0M;var o3Y=O0M;o3Y+=d3A.G0M;o3Y+=t0M;o3Y+=d3A.c0M;var i18n=this[v5M][o3Y];var min=this[v5M][q1G];var max=this[v5M][e3Y];var minYear=min?min[y3Y]():q7W;var maxYear=max?max[L3Y]():q7W;var i=minYear!==q7W?minYear:new Date()[j2A]()-this[v5M][s3Y];var j=maxYear!==q7W?maxYear:new Date()[j2A]()+this[v5M][T3Y];this[N2A](p5G,this[i2A](U1M,I1M),i18n[H2A]);this[N2A](K3Y,this[i2A](i,j));},_pad:function(i){var A2A='0';return i<l1M?A2A+i:i;},_position:function(){var d2A="dth";var u2A="offset";var C2A="Height";var Y2A="outerWidt";var X2A="scrollT";var w2A="heig";var E2A="idth";var i5Y=w8M;i5Y+=E2A;var N5Y=E2W;N5Y+=q1X;var f5Y=w2A;f5Y+=N5M;f5Y+=d3A.k0M;var v5Y=d3A.k0M;v5Y+=s3M;v5Y+=i9M;var Z5Y=X2A;Z5Y+=l4W;var t3Y=Y2A;t3Y+=N5M;var O3Y=v5M;O3Y+=F3M;O3Y+=F3M;var h3Y=f8W;h3Y+=C2A;var F3Y=O0M;F3Y+=d3A.c0M;F3Y+=i9M;F3Y+=d1G;var z3Y=L1W;z3Y+=z8M;var m3Y=H1W;m3Y+=d3A.k0M;m3Y+=d3A.q0M;m3Y+=S1W;var n3Y=z0M;n3Y+=s3M;n3Y+=z8M;var offset=this[W7W][L1G][u2A]();var container=this[n3Y][m3Y];var inputHeight=this[z3Y][F3Y][h3Y]();container[O3Y]({top:offset[X6X]+inputHeight,left:offset[u1X]})[g8W](x9W);var calHeight=container[K6X]();var calWidth=container[t3Y]();var scrollTop=$(window)[Z5Y]();if(offset[v5Y]+inputHeight+calHeight-scrollTop>$(window)[f5Y]()){var j5Y=v5M;j5Y+=F3M;j5Y+=F3M;var p5Y=d3A.k0M;p5Y+=l4W;var newTop=offset[p5Y]-calHeight;container[j5Y](V1X,newTop<U1M?U1M:newTop);}if(calWidth+offset[N5Y]>$(window)[i5Y]()){var A5Y=E2W;A5Y+=q1X;var H5Y=w8M;H5Y+=O0M;H5Y+=d2A;var newLeft=$(window)[H5Y]()-calWidth;container[E0W](A5Y,newLeft<U1M?U1M:newLeft);}},_range:function(start,end,inc){var a=[];if(!inc){inc=R1M;}for(var i=start;i<=end;i+=inc){a[f6W](i);}return a;},_setCalander:function(){var k2A="mp";var b2A="lMon";var E5Y=e3W;E5Y+=v6X;if(this[F3M][E5Y]){var u5Y=N0W;u5Y+=L5u;var C5Y=E9G;C5Y+=z8M;C5Y+=b2A;C5Y+=k1W;var Y5Y=d3A.q0M;Y5Y+=j2X;Y5Y+=d9M;Y5Y+=z0M;var X5Y=d3A.S0M;X5Y+=k2A;X5Y+=J9M;var w5Y=z0M;w5Y+=s3M;w5Y+=z8M;this[w5Y][X1G][X5Y]()[Y5Y](this[C5Y](this[F3M][u5Y][C5G](),this[F3M][x8M][a3G]()));}},_setTitle:function(){var S2A='year';var G2A="_optionSet";var a2A="mont";var V2A="tUTCMon";var P2A="getUTCFu";var P5Y=P2A;P5Y+=D3M;P5Y+=D3M;P5Y+=W0G;var k5Y=e3W;k5Y+=d3A.q0M;k5Y+=e0M;var b5Y=Q4G;b5Y+=V2A;b5Y+=k1W;var d5Y=a2A;d5Y+=N5M;this[G2A](d5Y,this[F3M][x8M][b5Y]());this[G2A](S2A,this[F3M][k5Y][P5Y]());},_setTime:function(){var M2A='seconds';var B2A="minutesRange";var r2A="getUTCMinutes";var W2A="hoursAvailable";var D2A='hours';var g2A="_optionsTime";var x2A="CHou";var c2A="rs1";var J2A="_option";var Q2A="getSeco";var q2A="Range";var c5Y=J1W;c5Y+=R3G;c5Y+=F3M;c5Y+=q2A;var J5Y=F3M;J5Y+=d3A.S0M;J5Y+=i2X;J5Y+=z1G;var Q5Y=Q2A;Q5Y+=z1G;var q5Y=J2A;q5Y+=F3M;q5Y+=M0G;q5Y+=i3M;var S5Y=D3G;S5Y+=P5M;S5Y+=F3M;var G5Y=d7G;G5Y+=c2A;G5Y+=P2W;var a5Y=V1W;a5Y+=z3G;a5Y+=F3M;var V5Y=q5G;V5Y+=x2A;V5Y+=T3M;V5Y+=F3M;var that=this;var d=this[F3M][z0M];var hours=d?d[V5Y]():U1M;var allowed=function(prop){var R2A='Increment';var U2A='Available';return that[v5M][prop+U2A]?that[v5M][prop+U2A]:that[i2A](U1M,f0M,that[v5M][prop+R2A]);};this[g2A](D2A,this[F3M][a5Y][G5Y]?o1M:K1M,hours,this[v5M][W2A]);this[g2A](B3G,p0M,d?d[r2A]():U1M,allowed(S5Y),this[F3M][B2A]);this[q5Y](M2A,p0M,d?d[Q5Y]():U1M,allowed(J5Y),this[F3M][c5Y]);},_show:function(){var L2A='keydown.';var y2A='scroll.';var e2A=' resize.';var o2A="namespa";var I2A="_pos";var l2A="l.";var W5Y=s3M;W5Y+=d3A.c0M;var D5Y=s3M;D5Y+=d3A.c0M;var g5Y=t5W;g5Y+=l2A;var R5Y=s3M;R5Y+=d3A.c0M;var U5Y=I2A;U5Y+=O0M;U5Y+=j3X;var x5Y=o2A;x5Y+=v1W;var that=this;var namespace=this[F3M][x5Y];this[U5Y]();$(window)[R5Y](g5Y+namespace+e2A+namespace,function(){that[O0G]();});$(n6X)[D5Y](y2A+namespace,function(){that[O0G]();});$(document)[W5Y](L2A+namespace,function(e){var s2A="keyCo";var M1M=9;var r5Y=s2A;r5Y+=f3M;if(e[T1X]===M1M||e[T1X]===m1M||e[r5Y]===e1M){that[E2X]();}});setTimeout(function(){var T2A='click.';var M5Y=s3M;M5Y+=d3A.c0M;var B5Y=e3M;B5Y+=s3M;B5Y+=z0M;B5Y+=e0M;$(B5Y)[M5Y](T2A+namespace,function(e){var K2A="par";var e5Y=d3A.k0M;e5Y+=j3G;e5Y+=d3A.S0M;e5Y+=d3A.k0M;var o5Y=z0M;o5Y+=w1W;var I5Y=K2A;I5Y+=d9M;I5Y+=d3A.k0M;I5Y+=F3M;var l5Y=d4W;l5Y+=T3M;l5Y+=Q4G;l5Y+=d3A.k0M;var parents=$(e[l5Y])[I5Y]();if(!parents[L2G](that[o5Y][o1W])[h3W]&&e[e5Y]!==that[W7W][L1G][U1M]){var y5Y=s5W;y5Y+=O0M;y5Y+=f3M;that[y5Y]();}});},l1M);},_writeOutput:function(focus){var t2A="getUTCDate";var O2A="momentLocale";var h2A="utc";var F2A="Strict";var z2A="ment";var m2A="forma";var n2A="getUTCFullY";var m5Y=z0M;m5Y+=s3M;m5Y+=z8M;var n5Y=n2A;n5Y+=B8M;n5Y+=T3M;var K5Y=m2A;K5Y+=d3A.k0M;var T5Y=a5X;T5Y+=z8M;T5Y+=d3A.q0M;T5Y+=d3A.k0M;var s5Y=z8M;s5Y+=s3M;s5Y+=z2A;s5Y+=F2A;var L5Y=X0X;L5Y+=z8M;L5Y+=d9M;L5Y+=d3A.k0M;var date=this[F3M][z0M];var out=window[I7G]?window[L5Y][h2A](date,undefined,this[v5M][O2A],this[v5M][s5Y])[T5Y](this[v5M][K5Y]):date[n5Y]()+S9X+this[J5G](date[a3G]()+R1M)+S9X+this[J5G](date[t2A]());this[m5Y][L1G][U0W](out);if(focus){var z5Y=d3A.Q0M;z5Y+=s3M;z5Y+=v5M;z5Y+=b7X;this[W7W][L1G][z5Y]();}}});Editor[F5Y][i1G]=U1M;Editor[Z7G][h5Y]={classPrefix:Z6A,disableDays:q7W,firstDay:R1M,format:O5Y,hoursAvailable:q7W,i18n:Editor[Q4W][t5Y][Z9Y],maxDate:q7W,minDate:q7W,minutesAvailable:q7W,minutesIncrement:R1M,momentStrict:k6W,momentLocale:v6A,onChange:function(){},secondsAvailable:q7W,secondsIncrement:R1M,showWeekNumber:d6W,yearRange:l1M};(function(){var U0A="_container";var J0A="uploadMany";var G0A="noFileText";var t1A="_picker";var s1A="icker";var I1A="ker";var r1A="datepicker";var C1A="_inpu";var Y1A='input:checked';var j1A="sa";var h7A="radio";var z7A="prop";var m7A="checked";var e7A="ked";var r7A='_';var W7A='<input id="';var D7A="fe";var S7A='input';var G7A="checkbox";var v7A="ipOpts";var Z7A="_addOptions";var h4A='change.dte';var F4A="multiple";var n4A="_editor_val";var K4A="optionsPair";var l4A="led";var B4A="tor_val";var g4A="textarea";var x4A='text';var c4A="_in";var Q4A="safeId";var q4A='<input/>';var G4A="readonly";var a4A="_val";var P4A="npu";var k4A="_inp";var y6A="_enabled";var e6A="_input";var A6A="ypes";var H6A="ieldT";var i6A="dels";var N6A="eldTy";var j6A="dden";var p6A="passw";var f6A="lect";var O4M=J5M;O4M+=s9M;O4M+=d3A.q0M;O4M+=z0M;var c4M=d3A.S0M;c4M+=a4W;c4M+=d9M;c4M+=z0M;var J4M=z0M;J4M+=d3A.q0M;J4M+=F0M;J4M+=h0M;var e6M=E5M;e6M+=u5M;var o6M=z0M;o6M+=i2u;o6M+=d3A.S0M;var u2M=R5M;u2M+=z2X;u2M+=z0M;var J8Y=d3A.S0M;J8Y+=J6u;J8Y+=d3A.c0M;J8Y+=z0M;var Q8Y=J1W;Q8Y+=f6A;var b8Y=p6A;b8Y+=s3M;b8Y+=T3M;b8Y+=z0M;var N8Y=N5M;N8Y+=O0M;N8Y+=j6A;var h9Y=L0M;h9Y+=N6A;h9Y+=i9M;h9Y+=d3A.S0M;var F9Y=X0X;F9Y+=i6A;var v9Y=d3A.Q0M;v9Y+=H6A;v9Y+=A6A;var fieldTypes=Editor[v9Y];function _buttonText(conf,text){var Y6A='div.upload button';var X6A="Choose file...";var w6A="dTex";var E6A="fin";var N9Y=N5M;N9Y+=d3A.k0M;N9Y+=z8M;N9Y+=D3M;var j9Y=E6A;j9Y+=z0M;var p9Y=V9M;p9Y+=n6W;p9Y+=Z0W;if(text===q7W||text===undefined){var f9Y=x2u;f9Y+=w6A;f9Y+=d3A.k0M;text=conf[f9Y]||X6A;}conf[p9Y][j9Y](Y6A)[N9Y](text);}function _commonUpload(editor,conf,dropCallback,multiple){var d4A='input[type=file]';var u4A='noDrop';var C4A=".render";var N4A='dragover';var p4A='over';var O6A='div.drop';var h6A="dragDropText";var F6A='div.drop span';var z6A="e to upload";var m6A=" drop a file her";var n6A="Drag a";var K6A="dro";var T6A="gleave dragex";var s6A="dragDrop";var L6A="FileReader";var o6A='<div class="rendered"/>';var I6A='<div class="cell clearValue">';var l6A='/>';var M6A='multiple';var B6A='<input type="file" ';var r6A='<button class="';var W6A="nInternal";var D6A="upload\"";var g6A="ditor_";var R6A="<div class=\"e";var U6A="=\"eu_table\">";var x6A="ass=\"row\">";var c6A="itHide\"";var J6A="<div class=\"cell upload lim";var Q6A="w second\">";var q6A="\"ro";var S6A="ass=";var G6A="<div cl";var a6A="itHide\">";var V6A="<div class=\"cell lim";var P6A="\"><span/></div>";var k6A="<div class=\"dro";var b6A="lass=\"cell\">";var d6A="v c";var u6A="lue but";var C6A=".clearVa";var m9Y=s3M;m9Y+=d3A.c0M;var s9Y=v5M;s9Y+=a6W;s9Y+=G6W;var L9Y=s3M;L9Y+=d3A.c0M;var y9Y=T5W;y9Y+=C6A;y9Y+=u6A;y9Y+=t0G;var e9Y=d3A.Q0M;e9Y+=j9W;var P9Y=W6W;P9Y+=p6u;P9Y+=z0M;P9Y+=G5W;var k9Y=a5W;k9Y+=Q8M;k9Y+=x7X;var b9Y=N4W;b9Y+=d6A;b9Y+=b6A;var d9Y=k6A;d9Y+=i9M;d9Y+=P6A;var u9Y=V6A;u9Y+=a6A;var C9Y=G6A;C9Y+=S6A;C9Y+=q6A;C9Y+=Q6A;var Y9Y=D7G;Y9Y+=Q2W;Y9Y+=W1X;Y9Y+=v4W;var X9Y=J6A;X9Y+=c6A;X9Y+=l6W;var w9Y=G6A;w9Y+=x6A;var E9Y=S7G;E9Y+=U6A;var A9Y=R6A;A9Y+=g6A;A9Y+=D6A;A9Y+=l6W;var H9Y=w8X;H9Y+=W6A;var i9Y=K8M;i9Y+=T3M;i9Y+=z8M;var btnClass=editor[W1W][i9Y][H9Y];var container=$(A9Y+E9Y+w9Y+X9Y+r6A+btnClass+F7X+B6A+(multiple?M6A:B2W)+l6A+Z7W+I6A+Y9Y+btnClass+F7X+Z7W+Z7W+C9Y+u9Y+d9Y+Z7W+b9Y+o6A+k9Y+P9Y+Z7W+Z7W);conf[e6A]=container;conf[y6A]=k6W;_buttonText(conf);if(window[L6A]&&conf[s6A]!==d6W){var M9Y=v5M;M9Y+=n8M;var W9Y=s3M;W9Y+=d3A.c0M;var U9Y=s3M;U9Y+=d3A.c0M;var J9Y=y9u;J9Y+=T6A;J9Y+=O0M;J9Y+=d3A.k0M;var G9Y=K6A;G9Y+=i9M;var a9Y=n6A;a9Y+=u5M;a9Y+=m6A;a9Y+=z6A;var V9Y=d3A.Q0M;V9Y+=O0M;V9Y+=d3A.c0M;V9Y+=z0M;container[V9Y](F6A)[I1X](conf[h6A]||a9Y);var dragDrop=container[D5X](O6A);dragDrop[L7W](G9Y,function(e){var f4A="dataTransfer";var v4A="uplo";var Z4A="ginalEvent";var t6A="ori";if(conf[y6A]){var Q9Y=g8X;Q9Y+=U3M;var q9Y=t6A;q9Y+=Z4A;var S9Y=v4A;S9Y+=T9M;Editor[S9Y](editor,conf,e[q9Y][f4A][Q9Y],_buttonText,dropCallback);dragDrop[x1W](p4A);}return d6W;})[L7W](J9Y,function(e){var j4A="_enable";var c9Y=j4A;c9Y+=z0M;if(conf[c9Y]){var x9Y=N8M;x9Y+=V3W;x9Y+=D6X;x9Y+=E7G;dragDrop[x9Y](p4A);}return d6W;})[U9Y](N4A,function(e){var H4A="dClass";var i4A="_enabl";var R9Y=i4A;R9Y+=X5M;if(conf[R9Y]){var D9Y=B9X;D9Y+=T3M;var g9Y=T9M;g9Y+=H4A;dragDrop[g9Y](D9Y);}return d6W;});editor[W9Y](a3X,function(){var E4A="E_Upload";var A4A="dragover.DTE_Upload drop.DT";var B9Y=A4A;B9Y+=E4A;var r9Y=e3M;r9Y+=s3M;r9Y+=z0M;r9Y+=e0M;$(r9Y)[L7W](B9Y,function(e){return d6W;});})[L7W](M9Y,function(){var Y4A="E_Upload drop.DTE_Upload";var X4A="r.DT";var w4A="ragove";var I9Y=z0M;I9Y+=w4A;I9Y+=X4A;I9Y+=Y4A;var l9Y=e3M;l9Y+=s3M;l9Y+=z0M;l9Y+=e0M;$(l9Y)[a6X](I9Y);});}else{var o9Y=T5W;o9Y+=C4A;o9Y+=X5M;container[X1W](u4A);container[k0W](container[D5X](o9Y));}container[e9Y](y9Y)[L9Y](s9Y,function(){var n9Y=F3M;n9Y+=d3A.S0M;n9Y+=d3A.k0M;var K9Y=R1X;K9Y+=z8X;var T9Y=d0X;T9Y+=k4W;Editor[T9Y][K9Y][n9Y][p1W](editor,conf,B2W);});container[D5X](d4A)[m9Y](l0X,function(){var z9Y=d3A.Q0M;z9Y+=e2u;z9Y+=d3A.S0M;z9Y+=F3M;Editor[p2u](editor,conf,this[z9Y],_buttonText,function(ids){dropCallback[p1W](editor,ids);container[D5X](d4A)[U0W](B2W);});});return container;}function _triggerChange(input){setTimeout(function(){var b4A="trigger";input[b4A](l0X,{editor:k6W,editorSet:k6W});},U1M);}var baseFieldType=$[U4W](k6W,{},Editor[F9Y][h9Y],{get:function(conf){var t9Y=A8M;t9Y+=D3M;var O9Y=k4A;O9Y+=d1G;return conf[O9Y][t9Y]();},set:function(conf,val){var Z8Y=V9M;Z8Y+=O0M;Z8Y+=P4A;Z8Y+=d3A.k0M;conf[Z8Y][U0W](val);_triggerChange(conf[e6A]);},enable:function(conf){var p8Y=Q8M;p8Y+=i1W;var f8Y=i9M;f8Y+=n9M;f8Y+=i9M;var v8Y=V9M;v8Y+=w0G;v8Y+=d3A.k0M;conf[v8Y][f8Y](p8Y,d6W);},disable:function(conf){var j8Y=q9M;j8Y+=s3M;j8Y+=i9M;conf[e6A][j8Y](u3G,k6W);},canReturnSubmit:function(conf,node){return k6W;}});fieldTypes[N8Y]={create:function(conf){var V4A="_v";var H8Y=e7W;H8Y+=l8X;H8Y+=J5M;H8Y+=d3A.S0M;var i8Y=V4A;i8Y+=l8X;conf[i8Y]=conf[H8Y];return q7W;},get:function(conf){return conf[a4A];},set:function(conf,val){conf[a4A]=val;}};fieldTypes[G4A]=$[U4W](k6W,{},baseFieldType,{create:function(conf){var S4A="readon";var w8Y=W5W;w8Y+=h6W;var E8Y=S4A;E8Y+=B7W;var A8Y=d3A.k0M;A8Y+=R5M;A8Y+=d3A.k0M;conf[e6A]=$(q4A)[y1X]($[U4W]({id:Editor[Q4A](conf[D4W]),type:A8Y,readonly:E8Y},conf[y1X]||{}));return conf[w8Y][U1M];}});fieldTypes[I1X]=$[U4W](k6W,{},baseFieldType,{create:function(conf){var J4A="ut/>";var d8Y=O0M;d8Y+=z0M;var u8Y=R5M;u8Y+=h6G;var C8Y=d3A.q0M;C8Y+=d3A.k0M;C8Y+=z5M;var Y8Y=W6W;Y8Y+=O0M;Y8Y+=O1G;Y8Y+=J4A;var X8Y=c4A;X8Y+=Z0W;conf[X8Y]=$(Y8Y)[C8Y]($[u8Y]({id:Editor[Q4A](conf[d8Y]),type:x4A},conf[y1X]||{}));return conf[e6A][U1M];}});fieldTypes[b8Y]=$[U4W](k6W,{},baseFieldType,{create:function(conf){var R4A='password';var U4A="saf";var G8Y=W5W;G8Y+=d3A.c0M;G8Y+=t1W;G8Y+=d3A.k0M;var a8Y=N6G;a8Y+=T3M;var V8Y=O0M;V8Y+=z0M;var P8Y=U4A;P8Y+=t6W;var k8Y=R5M;k8Y+=d3A.k0M;k8Y+=d3A.S0M;k8Y+=u5M;conf[e6A]=$(q4A)[y1X]($[k8Y]({id:Editor[P8Y](conf[V8Y]),type:R4A},conf[a8Y]||{}));return conf[G8Y][U1M];}});fieldTypes[g4A]=$[U4W](k6W,{},baseFieldType,{create:function(conf){var D4A='<textarea/>';var q8Y=V9M;q8Y+=O0M;q8Y+=O1G;q8Y+=d1G;var S8Y=O0M;S8Y+=z0M;conf[e6A]=$(D4A)[y1X]($[U4W]({id:Editor[Q4A](conf[S8Y])},conf[y1X]||{}));return conf[q8Y][U1M];},canReturnSubmit:function(conf,node){return d6W;}});fieldTypes[Q8Y]=$[J8Y](k6W,{},baseFieldType,{_addOptions:function(conf,opts,append){var T4A="hidden";var s4A="placeholderDisabled";var L4A="eholderValue";var y4A="plac";var e4A="rValue";var o4A="aceholde";var I4A="laceh";var M4A="laceholderDis";var r4A="_edi";var W4A="ehol";var c8Y=l4W;c8Y+=f8X;c8Y+=d3A.c0M;c8Y+=F3M;var elOpts=conf[e6A][U1M][c8Y];var countOffset=U1M;if(!append){var U8Y=L8W;U8Y+=v5M;U8Y+=W4A;U8Y+=g9M;var x8Y=E2W;x8Y+=Y6W;x8Y+=N5M;elOpts[x8Y]=U1M;if(conf[U8Y]!==undefined){var B8Y=r4A;B8Y+=B4A;var r8Y=Q8M;r8Y+=i1W;var W8Y=i9M;W8Y+=M4A;W8Y+=H2G;W8Y+=l4A;var D8Y=i9M;D8Y+=I4A;D8Y+=y1u;D8Y+=g9M;var g8Y=i9M;g8Y+=D3M;g8Y+=o4A;g8Y+=e4A;var R8Y=y4A;R8Y+=L4A;var placeholderValue=conf[R8Y]!==undefined?conf[g8Y]:B2W;countOffset+=R1M;elOpts[U1M]=new Option(conf[D8Y],placeholderValue);var disabled=conf[W8Y]!==undefined?conf[s4A]:k6W;elOpts[U1M][T4A]=disabled;elOpts[U1M][r8Y]=disabled;elOpts[U1M][B8Y]=placeholderValue;}}else{var M8Y=D3M;M8Y+=d3A.S0M;M8Y+=w3G;countOffset=elOpts[M8Y];}if(opts){Editor[W8X](opts,conf[K4A],function(val,label,i,attr){var option=new Option(label,val);option[n4A]=val;if(attr){$(option)[y1X](attr);}elOpts[i+countOffset]=option;});}},create:function(conf){var z4A='<select/>';var m4A="exten";var T8Y=s3M;T8Y+=A5M;var y8Y=s3M;y8Y+=d3A.c0M;var e8Y=d3A.q0M;e8Y+=d3A.k0M;e8Y+=d3A.k0M;e8Y+=T3M;var o8Y=O0M;o8Y+=z0M;var I8Y=m4A;I8Y+=z0M;var l8Y=d3A.q0M;l8Y+=d3A.k0M;l8Y+=d3A.k0M;l8Y+=T3M;conf[e6A]=$(z4A)[l8Y]($[I8Y]({id:Editor[Q4A](conf[o8Y]),multiple:conf[F4A]===k6W},conf[e8Y]||{}))[y8Y](h4A,function(e,d){var t4A="astS";var O4A="_l";if(!d||!d[H8X]){var s8Y=b1W;s8Y+=d3A.S0M;s8Y+=d3A.k0M;var L8Y=O4A;L8Y+=t4A;L8Y+=Y8M;conf[L8Y]=fieldTypes[K6G][s8Y](conf);}});fieldTypes[K6G][Z7A](conf,conf[T8Y]||conf[v7A]);return conf[e6A][U1M];},update:function(conf,options,append){var f7A="_lastSet";var m8Y=c4A;m8Y+=i9M;m8Y+=J5M;m8Y+=d3A.k0M;fieldTypes[K6G][Z7A](conf,options,append);var lastSet=conf[f7A];if(lastSet!==undefined){var n8Y=J1W;n8Y+=d3A.k0M;var K8Y=L6G;K8Y+=j5X;fieldTypes[K8Y][n8Y](conf,lastSet,k6W);}_triggerChange(conf[m8Y]);},get:function(conf){var w7A="rat";var E7A="sepa";var A7A="epara";var H7A="ted";var i7A="selec";var N7A="option:";var j7A="toArr";var p7A="tip";var v2M=d1W;v2M+=b1W;v2M+=d3A.k0M;v2M+=N5M;var O8Y=d8M;O8Y+=p7A;O8Y+=E2W;var h8Y=j7A;h8Y+=v6X;var F8Y=z8M;F8Y+=d3A.q0M;F8Y+=i9M;var z8Y=N7A;z8Y+=i7A;z8Y+=H7A;var val=conf[e6A][D5X](z8Y)[F8Y](function(){return this[n4A];})[h8Y]();if(conf[O8Y]){var Z2M=F3M;Z2M+=A7A;Z2M+=d3A.k0M;Z2M+=I0M;var t8Y=E7A;t8Y+=w7A;t8Y+=I0M;return conf[t8Y]?val[G9X](conf[Z2M]):val;}return val[v2M]?val[U1M]:q7W;},set:function(conf,val,localUpdate){var a7A="placeholder";var V7A="selected";var k7A='option';var b7A="arato";var d7A="Set";var u7A="_la";var C7A="ator";var Y7A="separ";var X7A="opt";var w2M=L0M;w2M+=d3A.c0M;w2M+=z0M;var E2M=X7A;E2M+=O0M;E2M+=s3M;E2M+=d3A.c0M;var A2M=d3A.Q0M;A2M+=O0M;A2M+=u5M;var H2M=D3M;H2M+=z9X;var j2M=p3W;j2M+=o0W;j2M+=e0W;var p2M=Y7A;p2M+=C7A;if(!localUpdate){var f2M=u7A;f2M+=d3W;f2M+=d7A;conf[f2M]=val;}if(conf[F4A]&&conf[p2M]&&!$[j2M](val)){var i2M=F3M;i2M+=m0W;i2M+=b7A;i2M+=T3M;var N2M=u1W;N2M+=l3W;N2M+=d3A.k0M;val=typeof val===z0W?val[N2M](conf[i2M]):[];}else if(!$[x1X](val)){val=[val];}var i,len=val[H2M],found,allFound=d6W;var options=conf[e6A][A2M](E2M);conf[e6A][w2M](k7A)[n7W](function(){var P7A="or_";found=d6W;for(i=U1M;i<len;i++){var X2M=C5X;X2M+=P7A;X2M+=e7W;X2M+=l8X;if(this[X2M]==val[i]){found=k6W;allFound=k6W;break;}}this[V7A]=found;});if(conf[a7A]&&!allFound&&!conf[F4A]&&options[h3W]){options[U1M][V7A]=k6W;}if(!localUpdate){var Y2M=V9M;Y2M+=O0M;Y2M+=O1G;Y2M+=d1G;_triggerChange(conf[Y2M]);}return allFound;},destroy:function(conf){var C2M=V9M;C2M+=O0M;C2M+=P4A;C2M+=d3A.k0M;conf[C2M][a6X](h4A);}});fieldTypes[G7A]=$[u2M](k6W,{},baseFieldType,{_addOptions:function(conf,opts,append){var val,label;var jqInput=conf[e6A];var offset=U1M;if(!append){jqInput[H8G]();}else{var d2M=E2W;d2M+=d3A.c0M;d2M+=X6W;offset=$(S7A,jqInput)[d2M];}if(opts){var b2M=V1W;b2M+=O0M;b2M+=T3M;b2M+=F3M;Editor[b2M](opts,conf[K4A],function(val,label,i,attr){var B7A="put:las";var g7A=" />";var R7A="e=\"checkbox\"";var U7A="\" typ";var x7A="bel for=\"";var c7A="<l";var J7A="input:";var Q7A="lue";var q7A="_editor_va";var x2M=q7A;x2M+=D3M;var c2M=e7W;c2M+=d3A.q0M;c2M+=Q7A;var J2M=d3A.q0M;J2M+=d3A.k0M;J2M+=z5M;var Q2M=J7A;Q2M+=Q1W;Q2M+=d3A.k0M;var q2M=c7X;q2M+=e7W;q2M+=l6W;var S2M=O0M;S2M+=z0M;var G2M=c7A;G2M+=d3A.q0M;G2M+=x7A;var a2M=U7A;a2M+=R7A;a2M+=g7A;var V2M=O0M;V2M+=z0M;var P2M=F3M;P2M+=d3A.q0M;P2M+=D7A;P2M+=c3W;var k2M=k5W;k2M+=O0M;k2M+=x7X;jqInput[k0W](k2M+W7A+Editor[P2M](conf[V2M])+r7A+(i+offset)+a2M+G2M+Editor[Q4A](conf[S2M])+r7A+(i+offset)+z4W+label+v7W+q2M);$(Q2M,jqInput)[J2M](c2M,val)[U1M][x2M]=val;if(attr){var R2M=i2u;R2M+=z5M;var U2M=n6W;U2M+=B7A;U2M+=d3A.k0M;$(U2M,jqInput)[R2M](attr);}});}},create:function(conf){var l7A='<div />';var M7A="ip";var D2M=M7A;D2M+=G5M;D2M+=b1G;D2M+=F3M;var g2M=V9M;g2M+=O0M;g2M+=O1G;g2M+=d1G;conf[g2M]=$(l7A);fieldTypes[G7A][Z7A](conf,conf[h0u]||conf[D2M]);return conf[e6A][U1M];},get:function(conf){var L7A="separator";var y7A="unselectedValue";var o7A="input:che";var I7A="separa";var l2M=d3A.d0M;l2M+=s3M;l2M+=O0M;l2M+=d3A.c0M;var M2M=I7A;M2M+=X9M;M2M+=T3M;var B2M=D3M;B2M+=z9X;var r2M=o7A;r2M+=v5M;r2M+=e7A;var W2M=W5W;W2M+=O1G;W2M+=d1G;var out=[];var selected=conf[W2M][D5X](r2M);if(selected[B2M]){selected[n7W](function(){out[f6W](this[n4A]);});}else if(conf[y7A]!==undefined){out[f6W](conf[y7A]);}return conf[L7A]===undefined||conf[M2M]===q7W?out:out[l2M](conf[L7A]);},set:function(conf,val){var n7A='|';var K7A="rato";var T7A="epa";var s7A="Arr";var K2M=d3A.S0M;K2M+=j9X;var T2M=D3M;T2M+=d9M;T2M+=X6W;var s2M=O0M;s2M+=F3M;s2M+=j3W;s2M+=I5X;var e2M=p3W;e2M+=s7A;e2M+=v6X;var o2M=n6W;o2M+=Z0W;var I2M=d3A.Q0M;I2M+=O0M;I2M+=d3A.c0M;I2M+=z0M;var jqInputs=conf[e6A][I2M](o2M);if(!$[e2M](val)&&typeof val===z0W){var L2M=F3M;L2M+=T7A;L2M+=K7A;L2M+=T3M;var y2M=F3M;y2M+=F7W;y2M+=O0M;y2M+=d3A.k0M;val=val[y2M](conf[L2M]||n7A);}else if(!$[s2M](val)){val=[val];}var i,len=val[T2M],found;jqInputs[K2M](function(){found=d6W;for(i=U1M;i<len;i++){if(this[n4A]==val[i]){found=k6W;break;}}this[m7A]=found;});_triggerChange(jqInputs);},enable:function(conf){var m2M=z0M;m2M+=K5G;m2M+=e3M;m2M+=l4A;var n2M=L0M;n2M+=u5M;conf[e6A][n2M](S7A)[z7A](m2M,d6W);},disable:function(conf){var z2M=V9M;z2M+=u1G;z2M+=J5M;z2M+=d3A.k0M;conf[z2M][D5X](S7A)[z7A](u3G,k6W);},update:function(conf,options,append){var F7A="_ad";var O2M=F3M;O2M+=d3A.S0M;O2M+=d3A.k0M;var h2M=F7A;h2M+=z0M;h2M+=g7u;var F2M=Q4G;F2M+=d3A.k0M;var checkbox=fieldTypes[G7A];var currVal=checkbox[F2M](conf);checkbox[h2M](conf,options,append);checkbox[O2M](conf,currVal);}});fieldTypes[h7A]=$[U4W](k6W,{},baseFieldType,{_addOptions:function(conf,opts,append){var t2M=c4A;t2M+=Z0W;var val,label;var jqInput=conf[t2M];var offset=U1M;if(!append){var Z6M=J1X;Z6M+=e0M;jqInput[Z6M]();}else{var v6M=O0M;v6M+=h6W;offset=$(v6M,jqInput)[h3W];}if(opts){Editor[W8X](opts,conf[K4A],function(val,label,i,attr){var N1A='input:last';var p1A=" name=\"";var f1A="\" type=\"radio\"";var v1A="r=";var Z1A="<label fo";var t7A="label>";var O7A="valu";var C6M=V9M;C6M+=R4u;C6M+=B4A;var Y6M=O7A;Y6M+=d3A.S0M;var X6M=d3A.q0M;X6M+=d3A.k0M;X6M+=d3A.k0M;X6M+=T3M;var w6M=W6W;w6M+=p6u;w6M+=t7A;var E6M=M6W;E6M+=l6W;var A6M=O0M;A6M+=z0M;var H6M=Z1A;H6M+=v1A;H6M+=M6W;var i6M=M6W;i6M+=Q2W;i6M+=p6u;i6M+=l6W;var N6M=f1A;N6M+=p1A;var j6M=j1A;j6M+=K9M;var p6M=k5W;p6M+=O0M;p6M+=e7W;p6M+=l6W;var f6M=M5W;f6M+=j5M;jqInput[f6M](p6M+W7A+Editor[j6M](conf[D4W])+r7A+(i+offset)+N6M+conf[g4W]+i6M+H6M+Editor[Q4A](conf[A6M])+r7A+(i+offset)+E6M+label+w6M+Z7W);$(N1A,jqInput)[X6M](Y6M,val)[U1M][C6M]=val;if(attr){$(N1A,jqInput)[y1X](attr);}});}},create:function(conf){var H1A="div /";var i1A="io";var b6M=s3M;b6M+=i9M;b6M+=g0W;b6M+=n6G;var d6M=G8W;d6M+=z0M;d6M+=i1A;var u6M=W6W;u6M+=H1A;u6M+=l6W;conf[e6A]=$(u6M);fieldTypes[d6M][Z7A](conf,conf[b6M]||conf[v7A]);this[L7W](a3X,function(){var P6M=d3A.S0M;P6M+=d3A.q0M;P6M+=v5M;P6M+=N5M;var k6M=n6W;k6M+=i9M;k6M+=J5M;k6M+=d3A.k0M;conf[e6A][D5X](k6M)[P6M](function(){var A1A="eChecked";var V6M=h9X;V6M+=A1A;if(this[V6M]){this[m7A]=k6W;}});});return conf[e6A][U1M];},get:function(conf){var X1A="r_";var w1A="ito";var E1A="_ed";var S6M=E1A;S6M+=w1A;S6M+=X1A;S6M+=U0W;var G6M=T1W;G6M+=k1W;var a6M=V9M;a6M+=L1G;var el=conf[a6M][D5X](Y1A);return el[G6M]?el[U1M][S6M]:undefined;},set:function(conf,val){var J6M=d3A.S0M;J6M+=d3A.q0M;J6M+=X0W;var Q6M=d3A.Q0M;Q6M+=O0M;Q6M+=d3A.c0M;Q6M+=z0M;var q6M=C1A;q6M+=d3A.k0M;var that=this;conf[q6M][Q6M](S7A)[J6M](function(){var V1A="ecked";var P1A="reCh";var k1A="chec";var b1A="_preChecked";var d1A="r_v";var u1A="dito";var c6M=c9M;c6M+=u1A;c6M+=d1A;c6M+=l8X;this[b1A]=d6W;if(this[c6M]==val){var x6M=k1A;x6M+=e7A;this[x6M]=k6W;this[b1A]=k6W;}else{var R6M=E5u;R6M+=P1A;R6M+=V1A;var U6M=v5M;U6M+=A4X;U6M+=v5M;U6M+=e7A;this[U6M]=d6W;this[R6M]=d6W;}});_triggerChange(conf[e6A][D5X](Y1A));},enable:function(conf){var g6M=c4A;g6M+=i9M;g6M+=d1G;conf[g6M][D5X](S7A)[z7A](u3G,d6W);},disable:function(conf){conf[e6A][D5X](S7A)[z7A](u3G,k6W);},update:function(conf,options,append){var q1A="ption";var S1A="ddO";var G1A="lte";var a1A="[va";var I6M=d3A.q0M;I6M+=d3A.k0M;I6M+=d3A.k0M;I6M+=T3M;var l6M=a1A;l6M+=r8X;l6M+=d3A.S0M;l6M+=v4W;var M6M=d3A.Q0M;M6M+=O0M;M6M+=G1A;M6M+=T3M;var B6M=O0M;B6M+=O1G;B6M+=J5M;B6M+=d3A.k0M;var r6M=d3A.Q0M;r6M+=j9W;var W6M=A9W;W6M+=S1A;W6M+=q1A;W6M+=F3M;var D6M=G8W;D6M+=z0M;D6M+=O0M;D6M+=s3M;var radio=fieldTypes[D6M];var currVal=radio[e3X](conf);radio[W6M](conf,options,append);var inputs=conf[e6A][r6M](B6M);radio[Z5W](conf,inputs[M6M](l6M+currVal+v6W)[h3W]?currVal:inputs[T9X](U1M)[I6M](W3G));}});fieldTypes[o6M]=$[e6M](k6W,{},baseFieldType,{create:function(conf){var W1A="RFC_2822";var D1A="dateFormat";var g1A="epicker";var R1A="dC";var U1A="eryui";var x1A="jqu";var c1A="Format";var J1A='<input />';var Q1A="picker";var i4M=C1A;i4M+=d3A.k0M;var n6M=L0X;n6M+=Q1A;var K6M=N6G;K6M+=T3M;var T6M=C5M;T6M+=a4W;var s6M=O0M;s6M+=z0M;var L6M=j1A;L6M+=D7A;L6M+=c3W;var y6M=d3A.q0M;y6M+=d3A.k0M;y6M+=d3A.k0M;y6M+=T3M;conf[e6A]=$(J1A)[y6M]($[U4W]({id:Editor[L6M](conf[s6M]),type:T6M},conf[K6M]));if($[n6M]){var h6M=z0M;h6M+=w9W;h6M+=c1A;var F6M=x1A;F6M+=U1A;var z6M=T9M;z6M+=R1A;z6M+=E7G;var m6M=k4A;m6M+=J5M;m6M+=d3A.k0M;conf[m6M][z6M](F6M);if(!conf[h6M]){var O6M=U6u;O6M+=g1A;conf[D1A]=$[O6M][W1A];}setTimeout(function(){var M1A='#ui-datepicker-div';var B1A="dateImage";var v4M=A0X;v4M+=D3M;v4M+=d3A.q0M;v4M+=e0M;var t6M=R5M;t6M+=h6G;$(conf[e6A])[r1A]($[t6M]({dateFormat:conf[D1A],buttonImage:conf[B1A],buttonImageOnly:k6W,onSelect:function(){var Z4M=L9X;Z4M+=F3M;conf[e6A][Z4M]()[N1X]();}},conf[M7W]));$(M1A)[E0W](v4M,w0W);},l1M);}else{var N4M=u4W;N4M+=d3A.k0M;N4M+=d3A.S0M;var j4M=d3A.k0M;j4M+=M9M;j4M+=d3A.S0M;var p4M=d3A.q0M;p4M+=A1X;p4M+=T3M;var f4M=c4A;f4M+=t1W;f4M+=d3A.k0M;conf[f4M][p4M](j4M,N4M);}return conf[i4M][U1M];},set:function(conf,val){var y1A="datepick";var e1A="setD";var o1A="sClass";var l1A="Datepic";var E4M=Z0G;E4M+=F3M;E4M+=l1A;E4M+=I1A;var A4M=N5M;A4M+=d3A.q0M;A4M+=o1A;var H4M=c4A;H4M+=Z0W;if($[r1A]&&conf[H4M][A4M](E4M)){var Y4M=X0W;Y4M+=d3A.q0M;Y4M+=v0G;var X4M=e1A;X4M+=w9W;var w4M=y1A;w4M+=E1W;conf[e6A][w4M](X4M,val)[Y4M]();}else{var C4M=W5W;C4M+=O1G;C4M+=d1G;$(conf[C4M])[U0W](val);}},enable:function(conf){var L1A="datep";if($[r1A]){var d4M=L1A;d4M+=s1A;var u4M=V9M;u4M+=u1G;u4M+=J5M;u4M+=d3A.k0M;conf[u4M][d4M](D3X);}else{var k4M=i9M;k4M+=T3M;k4M+=s3M;k4M+=i9M;var b4M=C1A;b4M+=d3A.k0M;$(conf[b4M])[k4M](u3G,d6W);}},disable:function(conf){var T1A="tepicke";if($[r1A]){var V4M=u4W;V4M+=T1A;V4M+=T3M;var P4M=W5W;P4M+=h6W;conf[P4M][V4M](k3X);}else{var a4M=N0W;a4M+=d3A.q0M;a4M+=n5G;$(conf[e6A])[z7A](a4M,k6W);}},owns:function(conf,node){var m1A='div.ui-datepicker-header';var n1A="v.ui-datepicker";var K1A="rents";var Q4M=d1W;Q4M+=b1W;Q4M+=k1W;var q4M=V1W;q4M+=K1A;var S4M=Q8M;S4M+=n1A;var G4M=i9M;G4M+=C3G;G4M+=W3W;G4M+=F3M;return $(node)[G4M](S4M)[h3W]||$(node)[q4M](m1A)[Q4M]?k6W:d6W;}});fieldTypes[J4M]=$[c4M](k6W,{},baseFieldType,{create:function(conf){var f0A="own";var v0A="yd";var Z0A="keyInput";var O1A="input ";var h1A="afe";var F1A="atet";var z1A="_closeF";var L4M=z1A;L4M+=d3A.c0M;var M4M=u7u;M4M+=H5W;M4M+=P3W;M4M+=d3A.c0M;var B4M=z0M;B4M+=F1A;B4M+=h0M;var r4M=K8M;r4M+=x9X;r4M+=d3A.q0M;r4M+=d3A.k0M;var W4M=d3A.q0M;W4M+=M8X;var D4M=O0M;D4M+=z0M;var g4M=F3M;g4M+=h1A;g4M+=c3W;var R4M=R5M;R4M+=z2X;R4M+=z0M;var U4M=d3A.q0M;U4M+=A1X;U4M+=T3M;var x4M=W6W;x4M+=O1A;x4M+=p6u;x4M+=l6W;conf[e6A]=$(x4M)[U4M]($[R4M](k6W,{id:Editor[g4M](conf[D4M]),type:x4A},conf[W4M]));conf[t1A]=new Editor[Z7G](conf[e6A],$[U4W]({format:conf[r4M],i18n:this[X8X][B4M],onChange:function(){_triggerChange(conf[e6A]);}},conf[M7W]));conf[M4M]=function(){var l4M=V9M;l4M+=i9M;l4M+=s1A;conf[l4M][y3X]();};if(conf[Z0A]===d6W){var e4M=G6W;e4M+=d3A.S0M;e4M+=v0A;e4M+=f0A;var o4M=s3M;o4M+=d3A.c0M;var I4M=k4A;I4M+=d1G;conf[I4M][o4M](e4M,function(e){var p0A="ventDefault";var y4M=B7X;y4M+=p0A;e[y4M]();});}this[L7W](C5W,conf[L4M]);return conf[e6A][U1M];},set:function(conf,val){var K4M=c4A;K4M+=i9M;K4M+=J5M;K4M+=d3A.k0M;var T4M=e7W;T4M+=l8X;var s4M=V9M;s4M+=i9M;s4M+=h1X;s4M+=I1A;conf[s4M][T4M](val);_triggerChange(conf[K4M]);},owns:function(conf,node){var j0A="owns";return conf[t1A][j0A](node);},errorMessage:function(conf,msg){var N0A="errorMsg";conf[t1A][N0A](msg);},destroy:function(conf){var A0A="oseF";var H0A="cker";var i0A="estroy";var F4M=z0M;F4M+=i0A;var z4M=V9M;z4M+=i9M;z4M+=O0M;z4M+=H0A;var m4M=V9M;m4M+=O0M;m4M+=h6W;var n4M=V9M;n4M+=r8M;n4M+=A0A;n4M+=d3A.c0M;this[a6X](C5W,conf[n4M]);conf[m4M][a6X](E0u);conf[z4M][F4M]();},minDate:function(conf,min){conf[t1A][D3G](min);},maxDate:function(conf,max){var h4M=z8M;h4M+=d3A.q0M;h4M+=m0M;conf[t1A][h4M](max);}});fieldTypes[O4M]=$[U4W](k6W,{},baseFieldType,{create:function(conf){var editor=this;var container=_commonUpload(editor,conf,function(val){var E0A="postUp";var v7M=E0A;v7M+=z8X;var Z7M=u6G;Z7M+=E2u;var t4M=R1X;t4M+=D3M;t4M+=d2u;Editor[J4W][t4M][Z5W][Z7M](editor,conf,val[U1M]);editor[G0X](v7M,[conf[g4W],val[U1M]]);});return container;},get:function(conf){var f7M=V9M;f7M+=U0W;return conf[f7M];},set:function(conf,val){var q0A='noClear';var S0A="clearText";var a0A="emp";var V0A="No fil";var P0A="pan>";var k0A="</s";var b0A="ende";var d0A="div.r";var u0A="learValue but";var C0A="v.c";var Y0A="rText";var X0A="lea";var w0A="load.";var P7M=V9M;P7M+=e7W;P7M+=d3A.q0M;P7M+=D3M;var k7M=R1X;k7M+=w0A;k7M+=H8X;var b7M=u1G;b7M+=d1G;var d7M=W5W;d7M+=d3A.c0M;d7M+=Z0W;var C7M=v5M;C7M+=X0A;C7M+=Y0A;var Y7M=Q8M;Y7M+=C0A;Y7M+=u0A;Y7M+=t0G;var j7M=z0M;j7M+=v2X;j7M+=v6X;var p7M=V9M;p7M+=n6W;p7M+=t1W;p7M+=d3A.k0M;conf[a4A]=val;var container=conf[p7M];if(conf[j7M]){var i7M=d0A;i7M+=b0A;i7M+=T3M;i7M+=X5M;var N7M=d3A.Q0M;N7M+=O0M;N7M+=d3A.c0M;N7M+=z0M;var rendered=container[N7M](i7M);if(conf[a4A]){rendered[b0W](conf[x8M](conf[a4A]));}else{var X7M=k0A;X7M+=P0A;var w7M=V0A;w7M+=d3A.S0M;var E7M=x8G;E7M+=d3A.q0M;E7M+=d3A.c0M;E7M+=l6W;var A7M=z7W;A7M+=y0M;A7M+=d3A.c0M;A7M+=z0M;var H7M=a0A;H7M+=d3A.k0M;H7M+=e0M;rendered[H7M]()[A7M](E7M+(conf[G0A]||w7M)+X7M);}}var button=container[D5X](Y7M);if(val&&conf[C7M]){var u7M=N5M;u7M+=d3A.k0M;u7M+=m3W;button[u7M](conf[S0A]);container[x1W](q0A);}else{container[X1W](q0A);}conf[d7M][D5X](b7M)[V1u](k7M,[conf[P7M]]);},enable:function(conf){var q7M=c9M;q7M+=d3A.c0M;q7M+=e0X;q7M+=X5M;var S7M=k3X;S7M+=z0M;var G7M=O0M;G7M+=d3A.c0M;G7M+=Z0W;var a7M=d3A.Q0M;a7M+=O0M;a7M+=d3A.c0M;a7M+=z0M;var V7M=k4A;V7M+=d1G;conf[V7M][a7M](G7M)[z7A](S7M,d6W);conf[q7M]=k6W;},disable:function(conf){var Q0A="nab";var J7M=c9M;J7M+=Q0A;J7M+=l4A;var Q7M=d3A.Q0M;Q7M+=O0M;Q7M+=u5M;conf[e6A][Q7M](S7A)[z7A](u3G,k6W);conf[J7M]=d6W;},canReturnSubmit:function(conf,node){return d6W;}});fieldTypes[J0A]=$[U4W](k6W,{},baseFieldType,{_showHide:function(conf){var R0A='div.limitHide';var x0A="limit";var c0A="limi";var W7M=d1W;W7M+=x0W;W7M+=N5M;var D7M=D3M;D7M+=O0M;D7M+=s2u;var g7M=d3A.c0M;g7M+=s3M;g7M+=d3A.c0M;g7M+=d3A.S0M;var R7M=c0A;R7M+=d3A.k0M;var U7M=E2W;U7M+=d3A.c0M;U7M+=x0W;U7M+=N5M;var x7M=v5M;x7M+=F3M;x7M+=F3M;var c7M=L0M;c7M+=d3A.c0M;c7M+=z0M;if(!conf[x0A]){return;}conf[U0A][c7M](R0A)[x7M](x7W,conf[a4A][U7M]>=conf[R7M]?g7M:s0W);conf[K2u]=conf[D7M]-conf[a4A][W7M];},create:function(conf){var D0A="dd";var g0A="on.r";var e7M=H0u;e7M+=g0A;e7M+=d3A.S0M;e7M+=V3W;var o7M=z8M;o7M+=J3W;o7M+=O0M;var I7M=d3A.q0M;I7M+=D0A;I7M+=F1W;var editor=this;var container=_commonUpload(editor,conf,function(val){var r0A='postUpload';var W0A="oncat";var l7M=V9M;l7M+=U0W;var M7M=F3M;M7M+=d3A.S0M;M7M+=d3A.k0M;var B7M=v5M;B7M+=W0A;var r7M=V9M;r7M+=A8M;r7M+=D3M;conf[a4A]=conf[r7M][B7M](val);Editor[J4W][J0A][M7M][p1W](editor,conf,conf[l7M]);editor[G0X](r0A,[conf[g4W],conf[a4A]]);},k6W);container[I7M](o7M)[L7W](s7W,e7M,function(e){var o0A='idx';var I0A="stopPropagatio";var l0A="pli";var M0A="ldTypes";var B0A="dMan";var n7M=x2u;n7M+=B0A;n7M+=e0M;var K7M=V0W;K7M+=M0A;var T7M=F3M;T7M+=l0A;T7M+=v1W;var s7M=V9M;s7M+=e7W;s7M+=d3A.q0M;s7M+=D3M;var L7M=z0M;L7M+=d3A.q0M;L7M+=d3A.k0M;L7M+=d3A.q0M;var y7M=I0A;y7M+=d3A.c0M;e[y7M]();var idx=$(this)[L7M](o0A);conf[s7M][T7M](idx,R1M);Editor[K7M][n7M][Z5W][p1W](editor,conf,conf[a4A]);});conf[U0A]=container;return container;},get:function(conf){return conf[a4A];},set:function(conf,val){var j3A='upload.editor';var p3A='No files';var f3A='<span>';var K0A='<ul/>';var T0A="iv.rendered";var s0A='Upload collections must have an array as a value';var L0A="ldT";var y0A="wHid";var e0A="_sho";var Y1M=V9M;Y1M+=e7W;Y1M+=d3A.q0M;Y1M+=D3M;var X1M=d1u;X1M+=T3M;var w1M=d3A.Q0M;w1M+=O0M;w1M+=u5M;var E1M=W5W;E1M+=O1G;E1M+=J5M;E1M+=d3A.k0M;var A1M=e0A;A1M+=y0A;A1M+=d3A.S0M;var H1M=d3A.Q0M;H1M+=r3X;H1M+=L0A;H1M+=A6A;var z7M=C1A;z7M+=d3A.k0M;var m7M=V9M;m7M+=e7W;m7M+=l8X;if(!val){val=[];}if(!$[x1X](val)){throw s0A;}conf[m7M]=val;var that=this;var container=conf[z7M];if(conf[x8M]){var h7M=z0M;h7M+=T0A;var F7M=d3A.Q0M;F7M+=O0M;F7M+=d3A.c0M;F7M+=z0M;var rendered=container[F7M](h7M)[H8G]();if(val[h3W]){var O7M=d3A.S0M;O7M+=d3A.q0M;O7M+=v5M;O7M+=N5M;var list=$(K0A)[g8W](rendered);$[O7M](val,function(i,file){var v3A='</li>';var Z3A="class=\"";var t0A=" <butto";var O0A="tton";var h0A="-idx=\"";var F0A="move\" data";var z0A=" re";var m0A=";</button";var n0A="\">&times";var N1M=n0A;N1M+=m0A;N1M+=l6W;var j1M=z0A;j1M+=F0A;j1M+=h0A;var p1M=i7X;p1M+=O0A;var f1M=d3A.Q0M;f1M+=j6u;var v1M=t0A;v1M+=d3A.c0M;v1M+=Q2W;v1M+=Z3A;var Z1M=Q8M;Z1M+=u1W;Z1M+=R6W;Z1M+=e0M;var t7M=W6W;t7M+=D3M;t7M+=O0M;t7M+=l6W;list[k0W](t7M+conf[Z1M](file,i)+v1M+that[W1W][f1M][p1M]+j1M+i+N1M+v3A);});}else{var i1M=z7W;i1M+=i9M;i1M+=j5M;rendered[i1M](f3A+(conf[G0A]||p3A)+E7W);}}Editor[H1M][J0A][A1M](conf);conf[E1M][w1M](S7A)[X1M](j3A,[conf[Y1M]]);},enable:function(conf){var d1M=O0M;d1M+=d3A.c0M;d1M+=t1W;d1M+=d3A.k0M;var u1M=d3A.Q0M;u1M+=j9W;var C1M=V9M;C1M+=L1G;conf[C1M][u1M](d1M)[z7A](u3G,d6W);conf[y6A]=k6W;},disable:function(conf){var P1M=Q8M;P1M+=j1A;P1M+=n5G;var k1M=i9M;k1M+=T3M;k1M+=l4W;var b1M=c4A;b1M+=Z0W;conf[b1M][D5X](S7A)[k1M](P1M,k6W);conf[y6A]=d6W;},canReturnSubmit:function(conf,node){return d6W;}});}());if(DataTable[V1M][N3A]){var G1M=d3A.Q0M;G1M+=i3A;G1M+=i9M;G1M+=U3M;var a1M=E5M;a1M+=u5M;$[a1M](Editor[G1M],DataTable[p5M][N3A]);}DataTable[p5M][S1M]=Editor[q1M];Editor[p6W]={};Editor[Q1M][H3A]=J1M;Editor[c1M]=x1M;return Editor;}));

/*! AutoFill 2.3.3
 * ©2008-2018 SpryMedia Ltd - datatables.net/license
 */

/**
 * @summary     AutoFill
 * @description Add Excel like click and drag auto-fill options to DataTables
 * @version     2.3.3
 * @file        dataTables.autoFill.js
 * @author      SpryMedia Ltd (www.sprymedia.co.uk)
 * @contact     www.sprymedia.co.uk/contact
 * @copyright   Copyright 2010-2018 SpryMedia Ltd.
 *
 * This source file is free software, available under the following license:
 *   MIT license - http://datatables.net/license/mit
 *
 * This source file is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
 * or FITNESS FOR A PARTICULAR PURPOSE. See the license files for details.
 *
 * For details please refer to: http://www.datatables.net
 */
(function( factory ){
	if ( typeof define === 'function' && define.amd ) {
		// AMD
		define( ['jquery', 'datatables.net'], function ( $ ) {
			return factory( $, window, document );
		} );
	}
	else if ( typeof exports === 'object' ) {
		// CommonJS
		module.exports = function (root, $) {
			if ( ! root ) {
				root = window;
			}

			if ( ! $ || ! $.fn.dataTable ) {
				$ = require('datatables.net')(root, $).$;
			}

			return factory( $, root, root.document );
		};
	}
	else {
		// Browser
		factory( jQuery, window, document );
	}
}(function( $, window, document, undefined ) {
'use strict';
var DataTable = $.fn.dataTable;


var _instance = 0;

/** 
 * AutoFill provides Excel like auto-fill features for a DataTable
 *
 * @class AutoFill
 * @constructor
 * @param {object} oTD DataTables settings object
 * @param {object} oConfig Configuration object for AutoFill
 */
var AutoFill = function( dt, opts )
{
	if ( ! DataTable.versionCheck || ! DataTable.versionCheck( '1.10.8' ) ) {
		throw( "Warning: AutoFill requires DataTables 1.10.8 or greater");
	}

	// User and defaults configuration object
	this.c = $.extend( true, {},
		DataTable.defaults.autoFill,
		AutoFill.defaults,
		opts
	);

	/**
	 * @namespace Settings object which contains customisable information for AutoFill instance
	 */
	this.s = {
		/** @type {DataTable.Api} DataTables' API instance */
		dt: new DataTable.Api( dt ),

		/** @type {String} Unique namespace for events attached to the document */
		namespace: '.autoFill'+(_instance++),

		/** @type {Object} Cached dimension information for use in the mouse move event handler */
		scroll: {},

		/** @type {integer} Interval object used for smooth scrolling */
		scrollInterval: null,

		handle: {
			height: 0,
			width: 0
		},

		/**
		 * Enabled setting
		 * @type {Boolean}
		 */
		enabled: false
	};


	/**
	 * @namespace Common and useful DOM elements for the class instance
	 */
	this.dom = {
		/** @type {jQuery} AutoFill handle */
		handle: $('<div class="dt-autofill-handle"/>'),

		/**
		 * @type {Object} Selected cells outline - Need to use 4 elements,
		 *   otherwise the mouse over if you back into the selected rectangle
		 *   will be over that element, rather than the cells!
		 */
		select: {
			top:    $('<div class="dt-autofill-select top"/>'),
			right:  $('<div class="dt-autofill-select right"/>'),
			bottom: $('<div class="dt-autofill-select bottom"/>'),
			left:   $('<div class="dt-autofill-select left"/>')
		},

		/** @type {jQuery} Fill type chooser background */
		background: $('<div class="dt-autofill-background"/>'),

		/** @type {jQuery} Fill type chooser */
		list: $('<div class="dt-autofill-list">'+this.s.dt.i18n('autoFill.info', '')+'<ul/></div>'),

		/** @type {jQuery} DataTables scrolling container */
		dtScroll: null,

		/** @type {jQuery} Offset parent element */
		offsetParent: null
	};


	/* Constructor logic */
	this._constructor();
};



$.extend( AutoFill.prototype, {
	/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
	 * Public methods (exposed via the DataTables API below)
	 */
	enabled: function ()
	{
		return this.s.enabled;
	},


	enable: function ( flag )
	{
		var that = this;

		if ( flag === false ) {
			return this.disable();
		}

		this.s.enabled = true;

		this._focusListener();

		this.dom.handle.on( 'mousedown', function (e) {
			that._mousedown( e );
			return false;
		} );

		return this;
	},

	disable: function ()
	{
		this.s.enabled = false;

		this._focusListenerRemove();

		return this;
	},


	/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
	 * Constructor
	 */

	/**
	 * Initialise the RowReorder instance
	 *
	 * @private
	 */
	_constructor: function ()
	{
		var that = this;
		var dt = this.s.dt;
		var dtScroll = $('div.dataTables_scrollBody', this.s.dt.table().container());

		// Make the instance accessible to the API
		dt.settings()[0].autoFill = this;

		if ( dtScroll.length ) {
			this.dom.dtScroll = dtScroll;

			// Need to scroll container to be the offset parent
			if ( dtScroll.css('position') === 'static' ) {
				dtScroll.css( 'position', 'relative' );
			}
		}

		if ( this.c.enable !== false ) {
			this.enable();
		}

		dt.on( 'destroy.autoFill', function () {
			that._focusListenerRemove();
		} );
	},


	/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
	 * Private methods
	 */

	/**
	 * Display the AutoFill drag handle by appending it to a table cell. This
	 * is the opposite of the _detach method.
	 *
	 * @param  {node} node TD/TH cell to insert the handle into
	 * @private
	 */
	_attach: function ( node )
	{
		var dt = this.s.dt;
		var idx = dt.cell( node ).index();
		var handle = this.dom.handle;
		var handleDim = this.s.handle;

		if ( ! idx || dt.columns( this.c.columns ).indexes().indexOf( idx.column ) === -1 ) {
			this._detach();
			return;
		}

		if ( ! this.dom.offsetParent ) {
			// We attach to the table's offset parent
			this.dom.offsetParent = $( dt.table().node() ).offsetParent();
		}

		if ( ! handleDim.height || ! handleDim.width ) {
			// Append to document so we can get its size. Not expecting it to
			// change during the life time of the page
			handle.appendTo( 'body' );
			handleDim.height = handle.outerHeight();
			handleDim.width = handle.outerWidth();
		}

		// Might need to go through multiple offset parents
		var offset = this._getPosition( node, this.dom.offsetParent );

		this.dom.attachedTo = node;
		handle
			.css( {
				top: offset.top + node.offsetHeight - handleDim.height,
				left: offset.left + node.offsetWidth - handleDim.width
			} )
			.appendTo( this.dom.offsetParent );
	},


	/**
	 * Determine can the fill type should be. This can be automatic, or ask the
	 * end user.
	 *
	 * @param {array} cells Information about the selected cells from the key
	 *     up function
	 * @private
	 */
	_actionSelector: function ( cells )
	{
		var that = this;
		var dt = this.s.dt;
		var actions = AutoFill.actions;
		var available = [];

		// "Ask" each plug-in if it wants to handle this data
		$.each( actions, function ( key, action ) {
			if ( action.available( dt, cells ) ) {
				available.push( key );
			}
		} );

		if ( available.length === 1 && this.c.alwaysAsk === false ) {
			// Only one action available - enact it immediately
			var result = actions[ available[0] ].execute( dt, cells );
			this._update( result, cells );
		}
		else {
			// Multiple actions available - ask the end user what they want to do
			var list = this.dom.list.children('ul').empty();

			// Add a cancel option
			available.push( 'cancel' );

			$.each( available, function ( i, name ) {
				list.append( $('<li/>')
					.append(
						'<div class="dt-autofill-question">'+
							actions[ name ].option( dt, cells )+
						'<div>'
					)
					.append( $('<div class="dt-autofill-button">' )
						.append( $('<button class="'+AutoFill.classes.btn+'">'+dt.i18n('autoFill.button', '&gt;')+'</button>')
							.on( 'click', function () {
								var result = actions[ name ].execute(
									dt, cells, $(this).closest('li')
								);
								that._update( result, cells );

								that.dom.background.remove();
								that.dom.list.remove();
							} )
						)
					)
				);
			} );

			this.dom.background.appendTo( 'body' );
			this.dom.list.appendTo( 'body' );

			this.dom.list.css( 'margin-top', this.dom.list.outerHeight()/2 * -1 );
		}
	},


	/**
	 * Remove the AutoFill handle from the document
	 *
	 * @private
	 */
	_detach: function ()
	{
		this.dom.attachedTo = null;
		this.dom.handle.detach();
	},


	/**
	 * Draw the selection outline by calculating the range between the start
	 * and end cells, then placing the highlighting elements to draw a rectangle
	 *
	 * @param  {node}   target End cell
	 * @param  {object} e      Originating event
	 * @private
	 */
	_drawSelection: function ( target, e )
	{
		// Calculate boundary for start cell to this one
		var dt = this.s.dt;
		var start = this.s.start;
		var startCell = $(this.dom.start);
		var end = {
			row: this.c.vertical ?
				dt.rows( { page: 'current' } ).nodes().indexOf( target.parentNode ) :
				start.row,
			column: this.c.horizontal ?
				$(target).index() :
				start.column
		};
		var colIndx = dt.column.index( 'toData', end.column );
		var endRow =  dt.row( ':eq('+end.row+')', { page: 'current' } ); // Workaround for M581
		var endCell = $( dt.cell( endRow.index(), colIndx ).node() );

		// Be sure that is a DataTables controlled cell
		if ( ! dt.cell( endCell ).any() ) {
			return;
		}

		// if target is not in the columns available - do nothing
		if ( dt.columns( this.c.columns ).indexes().indexOf( colIndx ) === -1 ) {
			return;
		}

		this.s.end = end;

		var top, bottom, left, right, height, width;

		top    = start.row    < end.row    ? startCell : endCell;
		bottom = start.row    < end.row    ? endCell   : startCell;
		left   = start.column < end.column ? startCell : endCell;
		right  = start.column < end.column ? endCell   : startCell;

		top    = this._getPosition( top.get(0) ).top;
		left   = this._getPosition( left.get(0) ).left;
		height = this._getPosition( bottom.get(0) ).top + bottom.outerHeight() - top;
		width  = this._getPosition( right.get(0) ).left + right.outerWidth() - left;

		var select = this.dom.select;
		select.top.css( {
			top: top,
			left: left,
			width: width
		} );

		select.left.css( {
			top: top,
			left: left,
			height: height
		} );

		select.bottom.css( {
			top: top + height,
			left: left,
			width: width
		} );

		select.right.css( {
			top: top,
			left: left + width,
			height: height
		} );
	},


	/**
	 * Use the Editor API to perform an update based on the new data for the
	 * cells
	 *
	 * @param {array} cells Information about the selected cells from the key
	 *     up function
	 * @private
	 */
	_editor: function ( cells )
	{
		var dt = this.s.dt;
		var editor = this.c.editor;

		if ( ! editor ) {
			return;
		}

		// Build the object structure for Editor's multi-row editing
		var idValues = {};
		var nodes = [];
		var fields = editor.fields();

		for ( var i=0, ien=cells.length ; i<ien ; i++ ) {
			for ( var j=0, jen=cells[i].length ; j<jen ; j++ ) {
				var cell = cells[i][j];

				// Determine the field name for the cell being edited
				var col = dt.settings()[0].aoColumns[ cell.index.column ];
				var fieldName = col.editField;

				if ( fieldName === undefined ) {
					var dataSrc = col.mData;

					// dataSrc is the `field.data` property, but we need to set
					// using the field name, so we need to translate from the
					// data to the name
					for ( var k=0, ken=fields.length ; k<ken ; k++ ) {
						var field = editor.field( fields[k] );

						if ( field.dataSrc() === dataSrc ) {
							fieldName = field.name();
							break;
						}
					}
				}

				if ( ! fieldName ) {
					throw 'Could not automatically determine field data. '+
						'Please see https://datatables.net/tn/11';
				}

				if ( ! idValues[ fieldName ] ) {
					idValues[ fieldName ] = {};
				}

				var id = dt.row( cell.index.row ).id();
				idValues[ fieldName ][ id ] = cell.set;

				// Keep a list of cells so we can activate the bubble editing
				// with them
				nodes.push( cell.index );
			}
		}

		// Perform the edit using bubble editing as it allows us to specify
		// the cells to be edited, rather than using full rows
		editor
			.bubble( nodes, false )
			.multiSet( idValues )
			.submit();
	},


	/**
	 * Emit an event on the DataTable for listeners
	 *
	 * @param  {string} name Event name
	 * @param  {array} args Event arguments
	 * @private
	 */
	_emitEvent: function ( name, args )
	{
		this.s.dt.iterator( 'table', function ( ctx, i ) {
			$(ctx.nTable).triggerHandler( name+'.dt', args );
		} );
	},


	/**
	 * Attach suitable listeners (based on the configuration) that will attach
	 * and detach the AutoFill handle in the document.
	 *
	 * @private
	 */
	_focusListener: function ()
	{
		var that = this;
		var dt = this.s.dt;
		var namespace = this.s.namespace;
		var focus = this.c.focus !== null ?
			this.c.focus :
			dt.init().keys || dt.settings()[0].keytable ?
				'focus' :
				'hover';

		// All event listeners attached here are removed in the `destroy`
		// callback in the constructor
		if ( focus === 'focus' ) {
			dt
				.on( 'key-focus.autoFill', function ( e, dt, cell ) {
					that._attach( cell.node() );
				} )
				.on( 'key-blur.autoFill', function ( e, dt, cell ) {
					that._detach();
				} );
		}
		else if ( focus === 'click' ) {
			$(dt.table().body()).on( 'click'+namespace, 'td, th', function (e) {
				that._attach( this );
			} );

			$(document.body).on( 'click'+namespace, function (e) {
				if ( ! $(e.target).parents().filter( dt.table().body() ).length ) {
					that._detach();
				}
			} );
		}
		else {
			$(dt.table().body())
				.on( 'mouseenter'+namespace, 'td, th', function (e) {
					that._attach( this );
				} )
				.on( 'mouseleave'+namespace, function (e) {
					if ( $(e.relatedTarget).hasClass('dt-autofill-handle') ) {
						return;
					}

					that._detach();
				} );
		}
	},


	_focusListenerRemove: function ()
	{
		var dt = this.s.dt;

		dt.off( '.autoFill' );
		$(dt.table().body()).off( this.s.namespace );
		$(document.body).off( this.s.namespace );
	},


	/**
	 * Get the position of a node, relative to another, including any scrolling
	 * offsets.
	 * @param  {Node}   node         Node to get the position of
	 * @param  {jQuery} targetParent Node to use as the parent
	 * @return {object}              Offset calculation
	 * @private
	 */
	_getPosition: function ( node, targetParent )
	{
		var
			currNode = node,
			currOffsetParent,
			top = 0,
			left = 0;

		if ( ! targetParent ) {
			targetParent = $( $( this.s.dt.table().node() )[0].offsetParent );
		}

		do {
			// Don't use jQuery().position() the behaviour changes between 1.x and 3.x for
			// tables
			var positionTop = currNode.offsetTop;
			var positionLeft = currNode.offsetLeft;

			// jQuery doesn't give a `table` as the offset parent oddly, so use DOM directly
			currOffsetParent = $( currNode.offsetParent );

			top += positionTop + currOffsetParent.scrollTop();
			left += positionLeft + currOffsetParent.scrollLeft();

			top += parseInt( currOffsetParent.css('margin-top') ) * 1;
			top += parseInt( currOffsetParent.css('border-top-width') ) * 1;

			// Emergency fall back. Shouldn't happen, but just in case!
			if ( currNode.nodeName.toLowerCase() === 'body' ) {
				break;
			}

			currNode = currOffsetParent.get(0); // for next loop
		}
		while ( currOffsetParent.get(0) !== targetParent.get(0) )

		return {
			top: top,
			left: left
		};
	},


	/**
	 * Start mouse drag - selects the start cell
	 *
	 * @param  {object} e Mouse down event
	 * @private
	 */
	_mousedown: function ( e )
	{
		var that = this;
		var dt = this.s.dt;

		this.dom.start = this.dom.attachedTo;
		this.s.start = {
			row: dt.rows( { page: 'current' } ).nodes().indexOf( $(this.dom.start).parent()[0] ),
			column: $(this.dom.start).index()
		};

		$(document.body)
			.on( 'mousemove.autoFill', function (e) {
				that._mousemove( e );
			} )
			.on( 'mouseup.autoFill', function (e) {
				that._mouseup( e );
			} );

		var select = this.dom.select;
		var offsetParent = $( dt.table().node() ).offsetParent();
		select.top.appendTo( offsetParent );
		select.left.appendTo( offsetParent );
		select.right.appendTo( offsetParent );
		select.bottom.appendTo( offsetParent );

		this._drawSelection( this.dom.start, e );

		this.dom.handle.css( 'display', 'none' );

		// Cache scrolling information so mouse move doesn't need to read.
		// This assumes that the window and DT scroller will not change size
		// during an AutoFill drag, which I think is a fair assumption
		var scrollWrapper = this.dom.dtScroll;
		this.s.scroll = {
			windowHeight: $(window).height(),
			windowWidth:  $(window).width(),
			dtTop:        scrollWrapper ? scrollWrapper.offset().top : null,
			dtLeft:       scrollWrapper ? scrollWrapper.offset().left : null,
			dtHeight:     scrollWrapper ? scrollWrapper.outerHeight() : null,
			dtWidth:      scrollWrapper ? scrollWrapper.outerWidth() : null
		};
	},


	/**
	 * Mouse drag - selects the end cell and update the selection display for
	 * the end user
	 *
	 * @param  {object} e Mouse move event
	 * @private
	 */
	_mousemove: function ( e )
	{	
		var that = this;
		var dt = this.s.dt;
		var name = e.target.nodeName.toLowerCase();
		if ( name !== 'td' && name !== 'th' ) {
			return;
		}

		this._drawSelection( e.target, e );
		this._shiftScroll( e );
	},


	/**
	 * End mouse drag - perform the update actions
	 *
	 * @param  {object} e Mouse up event
	 * @private
	 */
	_mouseup: function ( e )
	{
		$(document.body).off( '.autoFill' );

		var that = this;
		var dt = this.s.dt;
		var select = this.dom.select;
		select.top.remove();
		select.left.remove();
		select.right.remove();
		select.bottom.remove();

		this.dom.handle.css( 'display', 'block' );

		// Display complete - now do something useful with the selection!
		var start = this.s.start;
		var end = this.s.end;

		// Haven't selected multiple cells, so nothing to do
		if ( start.row === end.row && start.column === end.column ) {
			return;
		}

		var startDt = dt.cell( ':eq('+start.row+')', start.column+':visible', {page:'current'} );

		// If Editor is active inside this cell (inline editing) we need to wait for Editor to
		// submit and then we can loop back and trigger the fill.
		if ( $('div.DTE', startDt.node()).length ) {
			var editor = dt.editor();

			editor
				.on( 'submitSuccess.dtaf close.dtaf', function () {
					editor.off( '.dtaf');

					setTimeout( function () {
						that._mouseup( e );
					}, 100 );
				} )
				.on( 'submitComplete.dtaf preSubmitCancelled.dtaf close.dtaf', function () {
					editor.off( '.dtaf');
				} );

			// Make the current input submit
			editor.submit();

			return;
		}

		// Build a matrix representation of the selected rows
		var rows       = this._range( start.row, end.row );
		var columns    = this._range( start.column, end.column );
		var selected   = [];
		var dtSettings = dt.settings()[0];
		var dtColumns  = dtSettings.aoColumns;

		// Can't use Array.prototype.map as IE8 doesn't support it
		// Can't use $.map as jQuery flattens 2D arrays
		// Need to use a good old fashioned for loop
		for ( var rowIdx=0 ; rowIdx<rows.length ; rowIdx++ ) {
			selected.push(
				$.map( columns, function (column) {
					var row = dt.row( ':eq('+rows[rowIdx]+')', {page:'current'} ); // Workaround for M581
					var cell = dt.cell( row.index(), column+':visible' );
					var data = cell.data();
					var cellIndex = cell.index();
					var editField = dtColumns[ cellIndex.column ].editField;

					if ( editField !== undefined ) {
						data = dtSettings.oApi._fnGetObjectDataFn( editField )( dt.row( cellIndex.row ).data() );
					}

					return {
						cell:  cell,
						data:  data,
						label: cell.data(),
						index: cellIndex
					};
				} )
			);
		}

		this._actionSelector( selected );
		
		// Stop shiftScroll
		clearInterval( this.s.scrollInterval );
		this.s.scrollInterval = null;
	},


	/**
	 * Create an array with a range of numbers defined by the start and end
	 * parameters passed in (inclusive!).
	 * 
	 * @param  {integer} start Start
	 * @param  {integer} end   End
	 * @private
	 */
	_range: function ( start, end )
	{
		var out = [];
		var i;

		if ( start <= end ) {
			for ( i=start ; i<=end ; i++ ) {
				out.push( i );
			}
		}
		else {
			for ( i=start ; i>=end ; i-- ) {
				out.push( i );
			}
		}

		return out;
	},


	/**
	 * Move the window and DataTables scrolling during a drag to scroll new
	 * content into view. This is done by proximity to the edge of the scrolling
	 * container of the mouse - for example near the top edge of the window
	 * should scroll up. This is a little complicated as there are two elements
	 * that can be scrolled - the window and the DataTables scrolling view port
	 * (if scrollX and / or scrollY is enabled).
	 *
	 * @param  {object} e Mouse move event object
	 * @private
	 */
	_shiftScroll: function ( e )
	{
		var that = this;
		var dt = this.s.dt;
		var scroll = this.s.scroll;
		var runInterval = false;
		var scrollSpeed = 5;
		var buffer = 65;
		var
			windowY = e.pageY - document.body.scrollTop,
			windowX = e.pageX - document.body.scrollLeft,
			windowVert, windowHoriz,
			dtVert, dtHoriz;

		// Window calculations - based on the mouse position in the window,
		// regardless of scrolling
		if ( windowY < buffer ) {
			windowVert = scrollSpeed * -1;
		}
		else if ( windowY > scroll.windowHeight - buffer ) {
			windowVert = scrollSpeed;
		}

		if ( windowX < buffer ) {
			windowHoriz = scrollSpeed * -1;
		}
		else if ( windowX > scroll.windowWidth - buffer ) {
			windowHoriz = scrollSpeed;
		}

		// DataTables scrolling calculations - based on the table's position in
		// the document and the mouse position on the page
		if ( scroll.dtTop !== null && e.pageY < scroll.dtTop + buffer ) {
			dtVert = scrollSpeed * -1;
		}
		else if ( scroll.dtTop !== null && e.pageY > scroll.dtTop + scroll.dtHeight - buffer ) {
			dtVert = scrollSpeed;
		}

		if ( scroll.dtLeft !== null && e.pageX < scroll.dtLeft + buffer ) {
			dtHoriz = scrollSpeed * -1;
		}
		else if ( scroll.dtLeft !== null && e.pageX > scroll.dtLeft + scroll.dtWidth - buffer ) {
			dtHoriz = scrollSpeed;
		}

		// This is where it gets interesting. We want to continue scrolling
		// without requiring a mouse move, so we need an interval to be
		// triggered. The interval should continue until it is no longer needed,
		// but it must also use the latest scroll commands (for example consider
		// that the mouse might move from scrolling up to scrolling left, all
		// with the same interval running. We use the `scroll` object to "pass"
		// this information to the interval. Can't use local variables as they
		// wouldn't be the ones that are used by an already existing interval!
		if ( windowVert || windowHoriz || dtVert || dtHoriz ) {
			scroll.windowVert = windowVert;
			scroll.windowHoriz = windowHoriz;
			scroll.dtVert = dtVert;
			scroll.dtHoriz = dtHoriz;
			runInterval = true;
		}
		else if ( this.s.scrollInterval ) {
			// Don't need to scroll - remove any existing timer
			clearInterval( this.s.scrollInterval );
			this.s.scrollInterval = null;
		}

		// If we need to run the interval to scroll and there is no existing
		// interval (if there is an existing one, it will continue to run)
		if ( ! this.s.scrollInterval && runInterval ) {
			this.s.scrollInterval = setInterval( function () {
				// Don't need to worry about setting scroll <0 or beyond the
				// scroll bound as the browser will just reject that.
				if ( scroll.windowVert ) {
					document.body.scrollTop += scroll.windowVert;
				}
				if ( scroll.windowHoriz ) {
					document.body.scrollLeft += scroll.windowHoriz;
				}

				// DataTables scrolling
				if ( scroll.dtVert || scroll.dtHoriz ) {
					var scroller = that.dom.dtScroll[0];

					if ( scroll.dtVert ) {
						scroller.scrollTop += scroll.dtVert;
					}
					if ( scroll.dtHoriz ) {
						scroller.scrollLeft += scroll.dtHoriz;
					}
				}
			}, 20 );
		}
	},


	/**
	 * Update the DataTable after the user has selected what they want to do
	 *
	 * @param  {false|undefined} result Return from the `execute` method - can
	 *   be false internally to do nothing. This is not documented for plug-ins
	 *   and is used only by the cancel option.
	 * @param {array} cells Information about the selected cells from the key
	 *     up function, argumented with the set values
	 * @private
	 */
	_update: function ( result, cells )
	{
		// Do nothing on `false` return from an execute function
		if ( result === false ) {
			return;
		}

		var dt = this.s.dt;
		var cell;
		var columns = dt.columns( this.c.columns ).indexes();

		// Potentially allow modifications to the cells matrix
		this._emitEvent( 'preAutoFill', [ dt, cells ] );

		this._editor( cells );

		// Automatic updates are not performed if `update` is null and the
		// `editor` parameter is passed in - the reason being that Editor will
		// update the data once submitted
		var update = this.c.update !== null ?
			this.c.update :
			this.c.editor ?
				false :
				true;

		if ( update ) {
			for ( var i=0, ien=cells.length ; i<ien ; i++ ) {
				for ( var j=0, jen=cells[i].length ; j<jen ; j++ ) {
					cell = cells[i][j];

					if ( columns.indexOf(cell.index.column) !== -1 ) {
						cell.cell.data( cell.set );
					}
				}
			}

			dt.draw(false);
		}

		this._emitEvent( 'autoFill', [ dt, cells ] );
	}
} );


/**
 * AutoFill actions. The options here determine how AutoFill will fill the data
 * in the table when the user has selected a range of cells. Please see the
 * documentation on the DataTables site for full details on how to create plug-
 * ins.
 *
 * @type {Object}
 */
AutoFill.actions = {
	increment: {
		available: function ( dt, cells ) {
			var d = cells[0][0].label;

			// is numeric test based on jQuery's old `isNumeric` function
			return !isNaN( d - parseFloat( d ) );
		},

		option: function ( dt, cells ) {
			return dt.i18n(
				'autoFill.increment',
				'Increment / decrement each cell by: <input type="number" value="1">'
			);
		},

		execute: function ( dt, cells, node ) {
			var value = cells[0][0].data * 1;
			var increment = $('input', node).val() * 1;

			for ( var i=0, ien=cells.length ; i<ien ; i++ ) {
				for ( var j=0, jen=cells[i].length ; j<jen ; j++ ) {
					cells[i][j].set = value;

					value += increment;
				}
			}
		}
	},

	fill: {
		available: function ( dt, cells ) {
			return true;
		},

		option: function ( dt, cells ) {
			return dt.i18n('autoFill.fill', 'Fill all cells with <i>'+cells[0][0].label+'</i>' );
		},

		execute: function ( dt, cells, node ) {
			var value = cells[0][0].data;

			for ( var i=0, ien=cells.length ; i<ien ; i++ ) {
				for ( var j=0, jen=cells[i].length ; j<jen ; j++ ) {
					cells[i][j].set = value;
				}
			}
		}
	},

	fillHorizontal: {
		available: function ( dt, cells ) {
			return cells.length > 1 && cells[0].length > 1;
		},

		option: function ( dt, cells ) {
			return dt.i18n('autoFill.fillHorizontal', 'Fill cells horizontally' );
		},

		execute: function ( dt, cells, node ) {
			for ( var i=0, ien=cells.length ; i<ien ; i++ ) {
				for ( var j=0, jen=cells[i].length ; j<jen ; j++ ) {
					cells[i][j].set = cells[i][0].data;
				}
			}
		}
	},

	fillVertical: {
		available: function ( dt, cells ) {
			return cells.length > 1 && cells[0].length > 1;
		},

		option: function ( dt, cells ) {
			return dt.i18n('autoFill.fillVertical', 'Fill cells vertically' );
		},

		execute: function ( dt, cells, node ) {
			for ( var i=0, ien=cells.length ; i<ien ; i++ ) {
				for ( var j=0, jen=cells[i].length ; j<jen ; j++ ) {
					cells[i][j].set = cells[0][j].data;
				}
			}
		}
	},

	// Special type that does not make itself available, but is added
	// automatically by AutoFill if a multi-choice list is shown. This allows
	// sensible code reuse
	cancel: {
		available: function () {
			return false;
		},

		option: function ( dt ) {
			return dt.i18n('autoFill.cancel', 'Cancel' );
		},

		execute: function () {
			return false;
		}
	}
};


/**
 * AutoFill version
 * 
 * @static
 * @type      String
 */
AutoFill.version = '2.3.3';


/**
 * AutoFill defaults
 * 
 * @namespace
 */
AutoFill.defaults = {
	/** @type {Boolean} Ask user what they want to do, even for a single option */
	alwaysAsk: false,

	/** @type {string|null} What will trigger a focus */
	focus: null, // focus, click, hover

	/** @type {column-selector} Columns to provide auto fill for */
	columns: '', // all

	/** @type {Boolean} Enable AutoFill on load */
	enable: true,

	/** @type {boolean|null} Update the cells after a drag */
	update: null, // false is editor given, true otherwise

	/** @type {DataTable.Editor} Editor instance for automatic submission */
	editor: null,

	/** @type {boolean} Enable vertical fill */
	vertical: true,

	/** @type {boolean} Enable horizontal fill */
	horizontal: true
};


/**
 * Classes used by AutoFill that are configurable
 * 
 * @namespace
 */
AutoFill.classes = {
	/** @type {String} Class used by the selection button */
	btn: 'btn'
};


/*
 * API
 */
var Api = $.fn.dataTable.Api;

// Doesn't do anything - Not documented
Api.register( 'autoFill()', function () {
	return this;
} );

Api.register( 'autoFill().enabled()', function () {
	var ctx = this.context[0];

	return ctx.autoFill ?
		ctx.autoFill.enabled() :
		false;
} );

Api.register( 'autoFill().enable()', function ( flag ) {
	return this.iterator( 'table', function ( ctx ) {
		if ( ctx.autoFill ) {
			ctx.autoFill.enable( flag );
		}
	} );
} );

Api.register( 'autoFill().disable()', function () {
	return this.iterator( 'table', function ( ctx ) {
		if ( ctx.autoFill ) {
			ctx.autoFill.disable();
		}
	} );
} );


// Attach a listener to the document which listens for DataTables initialisation
// events so we can automatically initialise
$(document).on( 'preInit.dt.autofill', function (e, settings, json) {
	if ( e.namespace !== 'dt' ) {
		return;
	}

	var init = settings.oInit.autoFill;
	var defaults = DataTable.defaults.autoFill;

	if ( init || defaults ) {
		var opts = $.extend( {}, init, defaults );

		if ( init !== false ) {
			new AutoFill( settings, opts  );
		}
	}
} );


// Alias for access
DataTable.AutoFill = AutoFill;
DataTable.AutoFill = AutoFill;


return AutoFill;
}));


/*! FixedHeader 3.1.4
 * ©2009-2018 SpryMedia Ltd - datatables.net/license
 */

/**
 * @summary     FixedHeader
 * @description Fix a table's header or footer, so it is always visible while
 *              scrolling
 * @version     3.1.4
 * @file        dataTables.fixedHeader.js
 * @author      SpryMedia Ltd (www.sprymedia.co.uk)
 * @contact     www.sprymedia.co.uk/contact
 * @copyright   Copyright 2009-2018 SpryMedia Ltd.
 *
 * This source file is free software, available under the following license:
 *   MIT license - http://datatables.net/license/mit
 *
 * This source file is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
 * or FITNESS FOR A PARTICULAR PURPOSE. See the license files for details.
 *
 * For details please refer to: http://www.datatables.net
 */

(function( factory ){
	if ( typeof define === 'function' && define.amd ) {
		// AMD
		define( ['jquery', 'datatables.net'], function ( $ ) {
			return factory( $, window, document );
		} );
	}
	else if ( typeof exports === 'object' ) {
		// CommonJS
		module.exports = function (root, $) {
			if ( ! root ) {
				root = window;
			}

			if ( ! $ || ! $.fn.dataTable ) {
				$ = require('datatables.net')(root, $).$;
			}

			return factory( $, root, root.document );
		};
	}
	else {
		// Browser
		factory( jQuery, window, document );
	}
}(function( $, window, document, undefined ) {
'use strict';
var DataTable = $.fn.dataTable;


var _instCounter = 0;

var FixedHeader = function ( dt, config ) {
	// Sanity check - you just know it will happen
	if ( ! (this instanceof FixedHeader) ) {
		throw "FixedHeader must be initialised with the 'new' keyword.";
	}

	// Allow a boolean true for defaults
	if ( config === true ) {
		config = {};
	}

	dt = new DataTable.Api( dt );

	this.c = $.extend( true, {}, FixedHeader.defaults, config );

	this.s = {
		dt: dt,
		position: {
			theadTop: 0,
			tbodyTop: 0,
			tfootTop: 0,
			tfootBottom: 0,
			width: 0,
			left: 0,
			tfootHeight: 0,
			theadHeight: 0,
			windowHeight: $(window).height(),
			visible: true
		},
		headerMode: null,
		footerMode: null,
		autoWidth: dt.settings()[0].oFeatures.bAutoWidth,
		namespace: '.dtfc'+(_instCounter++),
		scrollLeft: {
			header: -1,
			footer: -1
		},
		enable: true
	};

	this.dom = {
		floatingHeader: null,
		thead: $(dt.table().header()),
		tbody: $(dt.table().body()),
		tfoot: $(dt.table().footer()),
		header: {
			host: null,
			floating: null,
			placeholder: null
		},
		footer: {
			host: null,
			floating: null,
			placeholder: null
		}
	};

	this.dom.header.host = this.dom.thead.parent();
	this.dom.footer.host = this.dom.tfoot.parent();

	var dtSettings = dt.settings()[0];
	if ( dtSettings._fixedHeader ) {
		throw "FixedHeader already initialised on table "+dtSettings.nTable.id;
	}

	dtSettings._fixedHeader = this;

	this._constructor();
};


/*
 * Variable: FixedHeader
 * Purpose:  Prototype for FixedHeader
 * Scope:    global
 */
$.extend( FixedHeader.prototype, {
	/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
	 * API methods
	 */
	
	/**
	 * Enable / disable the fixed elements
	 *
	 * @param  {boolean} enable `true` to enable, `false` to disable
	 */
	enable: function ( enable )
	{
		this.s.enable = enable;

		if ( this.c.header ) {
			this._modeChange( 'in-place', 'header', true );
		}

		if ( this.c.footer && this.dom.tfoot.length ) {
			this._modeChange( 'in-place', 'footer', true );
		}

		this.update();
	},
	
	/**
	 * Set header offset 
	 *
	 * @param  {int} new value for headerOffset
	 */
	headerOffset: function ( offset )
	{
		if ( offset !== undefined ) {
			this.c.headerOffset = offset;
			this.update();
		}

		return this.c.headerOffset;
	},
	
	/**
	 * Set footer offset
	 *
	 * @param  {int} new value for footerOffset
	 */
	footerOffset: function ( offset )
	{
		if ( offset !== undefined ) {
			this.c.footerOffset = offset;
			this.update();
		}

		return this.c.footerOffset;
	},

	
	/**
	 * Recalculate the position of the fixed elements and force them into place
	 */
	update: function ()
	{
		this._positions();
		this._scroll( true );
	},


	/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
	 * Constructor
	 */
	
	/**
	 * FixedHeader constructor - adding the required event listeners and
	 * simple initialisation
	 *
	 * @private
	 */
	_constructor: function ()
	{
		var that = this;
		var dt = this.s.dt;

		$(window)
			.on( 'scroll'+this.s.namespace, function () {
				that._scroll();
			} )
			.on( 'resize'+this.s.namespace, DataTable.util.throttle( function () {
				that.s.position.windowHeight = $(window).height();
				that.update();
			}, 50 ) );

		var autoHeader = $('.fh-fixedHeader');
		if ( ! this.c.headerOffset && autoHeader.length ) {
			this.c.headerOffset = autoHeader.outerHeight();
		}

		var autoFooter = $('.fh-fixedFooter');
		if ( ! this.c.footerOffset && autoFooter.length ) {
			this.c.footerOffset = autoFooter.outerHeight();
		}

		dt.on( 'column-reorder.dt.dtfc column-visibility.dt.dtfc draw.dt.dtfc column-sizing.dt.dtfc responsive-display.dt.dtfc', function () {
			that.update();
		} );

		dt.on( 'destroy.dtfc', function () {
			if ( that.c.header ) {
				that._modeChange( 'in-place', 'header', true );
			}

			if ( that.c.footer && that.dom.tfoot.length ) {
				that._modeChange( 'in-place', 'footer', true );
			}

			dt.off( '.dtfc' );
			$(window).off( that.s.namespace );
		} );

		this._positions();
		this._scroll();
	},


	/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
	 * Private methods
	 */

	/**
	 * Clone a fixed item to act as a place holder for the original element
	 * which is moved into a clone of the table element, and moved around the
	 * document to give the fixed effect.
	 *
	 * @param  {string}  item  'header' or 'footer'
	 * @param  {boolean} force Force the clone to happen, or allow automatic
	 *   decision (reuse existing if available)
	 * @private
	 */
	_clone: function ( item, force )
	{
		var dt = this.s.dt;
		var itemDom = this.dom[ item ];
		var itemElement = item === 'header' ?
			this.dom.thead :
			this.dom.tfoot;

		if ( ! force && itemDom.floating ) {
			// existing floating element - reuse it
			itemDom.floating.removeClass( 'fixedHeader-floating fixedHeader-locked' );
		}
		else {
			if ( itemDom.floating ) {
				itemDom.placeholder.remove();
				this._unsize( item );
				itemDom.floating.children().detach();
				itemDom.floating.remove();
			}

			itemDom.floating = $( dt.table().node().cloneNode( false ) )
				.css( 'table-layout', 'fixed' )
				.attr( 'aria-hidden', 'true' )
				.removeAttr( 'id' )
				.append( itemElement )
				.appendTo( 'body' );

			// Insert a fake thead/tfoot into the DataTable to stop it jumping around
			itemDom.placeholder = itemElement.clone( false )
			itemDom.placeholder
				.find( '*[id]' )
				.removeAttr( 'id' );

			itemDom.host.prepend( itemDom.placeholder );

			// Clone widths
			this._matchWidths( itemDom.placeholder, itemDom.floating );
		}
	},

	/**
	 * Copy widths from the cells in one element to another. This is required
	 * for the footer as the footer in the main table takes its sizes from the
	 * header columns. That isn't present in the footer so to have it still
	 * align correctly, the sizes need to be copied over. It is also required
	 * for the header when auto width is not enabled
	 *
	 * @param  {jQuery} from Copy widths from
	 * @param  {jQuery} to   Copy widths to
	 * @private
	 */
	_matchWidths: function ( from, to ) {
		var get = function ( name ) {
			return $(name, from)
				.map( function () {
					return $(this).width();
				} ).toArray();
		};

		var set = function ( name, toWidths ) {
			$(name, to).each( function ( i ) {
				$(this).css( {
					width: toWidths[i],
					minWidth: toWidths[i]
				} );
			} );
		};

		var thWidths = get( 'th' );
		var tdWidths = get( 'td' );

		set( 'th', thWidths );
		set( 'td', tdWidths );
	},

	/**
	 * Remove assigned widths from the cells in an element. This is required
	 * when inserting the footer back into the main table so the size is defined
	 * by the header columns and also when auto width is disabled in the
	 * DataTable.
	 *
	 * @param  {string} item The `header` or `footer`
	 * @private
	 */
	_unsize: function ( item ) {
		var el = this.dom[ item ].floating;

		if ( el && (item === 'footer' || (item === 'header' && ! this.s.autoWidth)) ) {
			$('th, td', el).css( {
				width: '',
				minWidth: ''
			} );
		}
		else if ( el && item === 'header' ) {
			$('th, td', el).css( 'min-width', '' );
		}
	},

	/**
	 * Reposition the floating elements to take account of horizontal page
	 * scroll
	 *
	 * @param  {string} item       The `header` or `footer`
	 * @param  {int}    scrollLeft Document scrollLeft
	 * @private
	 */
	_horizontal: function ( item, scrollLeft )
	{
		var itemDom = this.dom[ item ];
		var position = this.s.position;
		var lastScrollLeft = this.s.scrollLeft;

		if ( itemDom.floating && lastScrollLeft[ item ] !== scrollLeft ) {
			itemDom.floating.css( 'left', position.left - scrollLeft );

			lastScrollLeft[ item ] = scrollLeft;
		}
	},

	/**
	 * Change from one display mode to another. Each fixed item can be in one
	 * of:
	 *
	 * * `in-place` - In the main DataTable
	 * * `in` - Floating over the DataTable
	 * * `below` - (Header only) Fixed to the bottom of the table body
	 * * `above` - (Footer only) Fixed to the top of the table body
	 * 
	 * @param  {string}  mode        Mode that the item should be shown in
	 * @param  {string}  item        'header' or 'footer'
	 * @param  {boolean} forceChange Force a redraw of the mode, even if already
	 *     in that mode.
	 * @private
	 */
	_modeChange: function ( mode, item, forceChange )
	{
		var dt = this.s.dt;
		var itemDom = this.dom[ item ];
		var position = this.s.position;

		// Record focus. Browser's will cause input elements to loose focus if
		// they are inserted else where in the doc
		var tablePart = this.dom[ item==='footer' ? 'tfoot' : 'thead' ];
		var focus = $.contains( tablePart[0], document.activeElement ) ?
			document.activeElement :
			null;
		
		if ( focus ) {
			focus.blur();
		}

		if ( mode === 'in-place' ) {
			// Insert the header back into the table's real header
			if ( itemDom.placeholder ) {
				itemDom.placeholder.remove();
				itemDom.placeholder = null;
			}

			this._unsize( item );

			if ( item === 'header' ) {
				itemDom.host.prepend( tablePart );
			}
			else {
				itemDom.host.append( tablePart );
			}

			if ( itemDom.floating ) {
				itemDom.floating.remove();
				itemDom.floating = null;
			}
		}
		else if ( mode === 'in' ) {
			// Remove the header from the read header and insert into a fixed
			// positioned floating table clone
			this._clone( item, forceChange );

			itemDom.floating
				.addClass( 'fixedHeader-floating' )
				.css( item === 'header' ? 'top' : 'bottom', this.c[item+'Offset'] )
				.css( 'left', position.left+'px' )
				.css( 'width', position.width+'px' );

			if ( item === 'footer' ) {
				itemDom.floating.css( 'top', '' );
			}
		}
		else if ( mode === 'below' ) { // only used for the header
			// Fix the position of the floating header at base of the table body
			this._clone( item, forceChange );

			itemDom.floating
				.addClass( 'fixedHeader-locked' )
				.css( 'top', position.tfootTop - position.theadHeight )
				.css( 'left', position.left+'px' )
				.css( 'width', position.width+'px' );
		}
		else if ( mode === 'above' ) { // only used for the footer
			// Fix the position of the floating footer at top of the table body
			this._clone( item, forceChange );

			itemDom.floating
				.addClass( 'fixedHeader-locked' )
				.css( 'top', position.tbodyTop )
				.css( 'left', position.left+'px' )
				.css( 'width', position.width+'px' );
		}

		// Restore focus if it was lost
		if ( focus && focus !== document.activeElement ) {
			setTimeout( function () {
				focus.focus();
			}, 10 );
		}

		this.s.scrollLeft.header = -1;
		this.s.scrollLeft.footer = -1;
		this.s[item+'Mode'] = mode;
	},

	/**
	 * Cache the positional information that is required for the mode
	 * calculations that FixedHeader performs.
	 *
	 * @private
	 */
	_positions: function ()
	{
		var dt = this.s.dt;
		var table = dt.table();
		var position = this.s.position;
		var dom = this.dom;
		var tableNode = $(table.node());

		// Need to use the header and footer that are in the main table,
		// regardless of if they are clones, since they hold the positions we
		// want to measure from
		var thead = tableNode.children('thead');
		var tfoot = tableNode.children('tfoot');
		var tbody = dom.tbody;

		position.visible = tableNode.is(':visible');
		position.width = tableNode.outerWidth();
		position.left = tableNode.offset().left;
		position.theadTop = thead.offset().top;
		position.tbodyTop = tbody.offset().top;
		position.theadHeight = position.tbodyTop - position.theadTop;

		if ( tfoot.length ) {
			position.tfootTop = tfoot.offset().top;
			position.tfootBottom = position.tfootTop + tfoot.outerHeight();
			position.tfootHeight = position.tfootBottom - position.tfootTop;
		}
		else {
			position.tfootTop = position.tbodyTop + tbody.outerHeight();
			position.tfootBottom = position.tfootTop;
			position.tfootHeight = position.tfootTop;
		}
	},


	/**
	 * Mode calculation - determine what mode the fixed items should be placed
	 * into.
	 *
	 * @param  {boolean} forceChange Force a redraw of the mode, even if already
	 *     in that mode.
	 * @private
	 */
	_scroll: function ( forceChange )
	{
		var windowTop = $(document).scrollTop();
		var windowLeft = $(document).scrollLeft();
		var position = this.s.position;
		var headerMode, footerMode;

		if ( ! this.s.enable ) {
			return;
		}

		if ( this.c.header ) {
			if ( ! position.visible || windowTop <= position.theadTop - this.c.headerOffset ) {
				headerMode = 'in-place';
			}
			else if ( windowTop <= position.tfootTop - position.theadHeight - this.c.headerOffset ) {
				headerMode = 'in';
			}
			else {
				headerMode = 'below';
			}

			if ( forceChange || headerMode !== this.s.headerMode ) {
				this._modeChange( headerMode, 'header', forceChange );
			}

			this._horizontal( 'header', windowLeft );
		}

		if ( this.c.footer && this.dom.tfoot.length ) {
			if ( ! position.visible || windowTop + position.windowHeight >= position.tfootBottom + this.c.footerOffset ) {
				footerMode = 'in-place';
			}
			else if ( position.windowHeight + windowTop > position.tbodyTop + position.tfootHeight + this.c.footerOffset ) {
				footerMode = 'in';
			}
			else {
				footerMode = 'above';
			}

			if ( forceChange || footerMode !== this.s.footerMode ) {
				this._modeChange( footerMode, 'footer', forceChange );
			}

			this._horizontal( 'footer', windowLeft );
		}
	}
} );


/**
 * Version
 * @type {String}
 * @static
 */
FixedHeader.version = "3.1.4";

/**
 * Defaults
 * @type {Object}
 * @static
 */
FixedHeader.defaults = {
	header: true,
	footer: false,
	headerOffset: 0,
	footerOffset: 0
};


/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 * DataTables interfaces
 */

// Attach for constructor access
$.fn.dataTable.FixedHeader = FixedHeader;
$.fn.DataTable.FixedHeader = FixedHeader;


// DataTables creation - check if the FixedHeader option has been defined on the
// table and if so, initialise
$(document).on( 'init.dt.dtfh', function (e, settings, json) {
	if ( e.namespace !== 'dt' ) {
		return;
	}

	var init = settings.oInit.fixedHeader;
	var defaults = DataTable.defaults.fixedHeader;

	if ( (init || defaults) && ! settings._fixedHeader ) {
		var opts = $.extend( {}, defaults, init );

		if ( init !== false ) {
			new FixedHeader( settings, opts );
		}
	}
} );

// DataTables API methods
DataTable.Api.register( 'fixedHeader()', function () {} );

DataTable.Api.register( 'fixedHeader.adjust()', function () {
	return this.iterator( 'table', function ( ctx ) {
		var fh = ctx._fixedHeader;

		if ( fh ) {
			fh.update();
		}
	} );
} );

DataTable.Api.register( 'fixedHeader.enable()', function ( flag ) {
	return this.iterator( 'table', function ( ctx ) {
		var fh = ctx._fixedHeader;

		flag = ( flag !== undefined ? flag : true );
		if ( fh && flag !== fh.s.enable ) {
			fh.enable( flag );
		}
	} );
} );

DataTable.Api.register( 'fixedHeader.disable()', function ( ) {
	return this.iterator( 'table', function ( ctx ) {
		var fh = ctx._fixedHeader;

		if ( fh && fh.s.enable ) {
			fh.enable( false );
		}
	} );
} );

$.each( ['header', 'footer'], function ( i, el ) {
	DataTable.Api.register( 'fixedHeader.'+el+'Offset()', function ( offset ) {
		var ctx = this.context;

		if ( offset === undefined ) {
			return ctx.length && ctx[0]._fixedHeader ?
				ctx[0]._fixedHeader[el +'Offset']() :
				undefined;
		}

		return this.iterator( 'table', function ( ctx ) {
			var fh = ctx._fixedHeader;

			if ( fh ) {
				fh[ el +'Offset' ]( offset );
			}
		} );
	} );
} );


return FixedHeader;
}));


/*! Responsive 2.2.2
 * 2014-2018 SpryMedia Ltd - datatables.net/license
 */

/**
 * @summary     Responsive
 * @description Responsive tables plug-in for DataTables
 * @version     2.2.2
 * @file        dataTables.responsive.js
 * @author      SpryMedia Ltd (www.sprymedia.co.uk)
 * @contact     www.sprymedia.co.uk/contact
 * @copyright   Copyright 2014-2018 SpryMedia Ltd.
 *
 * This source file is free software, available under the following license:
 *   MIT license - http://datatables.net/license/mit
 *
 * This source file is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
 * or FITNESS FOR A PARTICULAR PURPOSE. See the license files for details.
 *
 * For details please refer to: http://www.datatables.net
 */
(function( factory ){
	if ( typeof define === 'function' && define.amd ) {
		// AMD
		define( ['jquery', 'datatables.net'], function ( $ ) {
			return factory( $, window, document );
		} );
	}
	else if ( typeof exports === 'object' ) {
		// CommonJS
		module.exports = function (root, $) {
			if ( ! root ) {
				root = window;
			}

			if ( ! $ || ! $.fn.dataTable ) {
				$ = require('datatables.net')(root, $).$;
			}

			return factory( $, root, root.document );
		};
	}
	else {
		// Browser
		factory( jQuery, window, document );
	}
}(function( $, window, document, undefined ) {
'use strict';
var DataTable = $.fn.dataTable;


/**
 * Responsive is a plug-in for the DataTables library that makes use of
 * DataTables' ability to change the visibility of columns, changing the
 * visibility of columns so the displayed columns fit into the table container.
 * The end result is that complex tables will be dynamically adjusted to fit
 * into the viewport, be it on a desktop, tablet or mobile browser.
 *
 * Responsive for DataTables has two modes of operation, which can used
 * individually or combined:
 *
 * * Class name based control - columns assigned class names that match the
 *   breakpoint logic can be shown / hidden as required for each breakpoint.
 * * Automatic control - columns are automatically hidden when there is no
 *   room left to display them. Columns removed from the right.
 *
 * In additional to column visibility control, Responsive also has built into
 * options to use DataTables' child row display to show / hide the information
 * from the table that has been hidden. There are also two modes of operation
 * for this child row display:
 *
 * * Inline - when the control element that the user can use to show / hide
 *   child rows is displayed inside the first column of the table.
 * * Column - where a whole column is dedicated to be the show / hide control.
 *
 * Initialisation of Responsive is performed by:
 *
 * * Adding the class `responsive` or `dt-responsive` to the table. In this case
 *   Responsive will automatically be initialised with the default configuration
 *   options when the DataTable is created.
 * * Using the `responsive` option in the DataTables configuration options. This
 *   can also be used to specify the configuration options, or simply set to
 *   `true` to use the defaults.
 *
 *  @class
 *  @param {object} settings DataTables settings object for the host table
 *  @param {object} [opts] Configuration options
 *  @requires jQuery 1.7+
 *  @requires DataTables 1.10.3+
 *
 *  @example
 *      $('#example').DataTable( {
 *        responsive: true
 *      } );
 *    } );
 */
var Responsive = function ( settings, opts ) {
	// Sanity check that we are using DataTables 1.10 or newer
	if ( ! DataTable.versionCheck || ! DataTable.versionCheck( '1.10.10' ) ) {
		throw 'DataTables Responsive requires DataTables 1.10.10 or newer';
	}

	this.s = {
		dt: new DataTable.Api( settings ),
		columns: [],
		current: []
	};

	// Check if responsive has already been initialised on this table
	if ( this.s.dt.settings()[0].responsive ) {
		return;
	}

	// details is an object, but for simplicity the user can give it as a string
	// or a boolean
	if ( opts && typeof opts.details === 'string' ) {
		opts.details = { type: opts.details };
	}
	else if ( opts && opts.details === false ) {
		opts.details = { type: false };
	}
	else if ( opts && opts.details === true ) {
		opts.details = { type: 'inline' };
	}

	this.c = $.extend( true, {}, Responsive.defaults, DataTable.defaults.responsive, opts );
	settings.responsive = this;
	this._constructor();
};

$.extend( Responsive.prototype, {
	/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
	 * Constructor
	 */

	/**
	 * Initialise the Responsive instance
	 *
	 * @private
	 */
	_constructor: function ()
	{
		var that = this;
		var dt = this.s.dt;
		var dtPrivateSettings = dt.settings()[0];
		var oldWindowWidth = $(window).width();

		dt.settings()[0]._responsive = this;

		// Use DataTables' throttle function to avoid processor thrashing on
		// resize
		$(window).on( 'resize.dtr orientationchange.dtr', DataTable.util.throttle( function () {
			// iOS has a bug whereby resize can fire when only scrolling
			// See: http://stackoverflow.com/questions/8898412
			var width = $(window).width();

			if ( width !== oldWindowWidth ) {
				that._resize();
				oldWindowWidth = width;
			}
		} ) );

		// DataTables doesn't currently trigger an event when a row is added, so
		// we need to hook into its private API to enforce the hidden rows when
		// new data is added
		dtPrivateSettings.oApi._fnCallbackReg( dtPrivateSettings, 'aoRowCreatedCallback', function (tr, data, idx) {
			if ( $.inArray( false, that.s.current ) !== -1 ) {
				$('>td, >th', tr).each( function ( i ) {
					var idx = dt.column.index( 'toData', i );

					if ( that.s.current[idx] === false ) {
						$(this).css('display', 'none');
					}
				} );
			}
		} );

		// Destroy event handler
		dt.on( 'destroy.dtr', function () {
			dt.off( '.dtr' );
			$( dt.table().body() ).off( '.dtr' );
			$(window).off( 'resize.dtr orientationchange.dtr' );

			// Restore the columns that we've hidden
			$.each( that.s.current, function ( i, val ) {
				if ( val === false ) {
					that._setColumnVis( i, true );
				}
			} );
		} );

		// Reorder the breakpoints array here in case they have been added out
		// of order
		this.c.breakpoints.sort( function (a, b) {
			return a.width < b.width ? 1 :
				a.width > b.width ? -1 : 0;
		} );

		this._classLogic();
		this._resizeAuto();

		// Details handler
		var details = this.c.details;

		if ( details.type !== false ) {
			that._detailsInit();

			// DataTables will trigger this event on every column it shows and
			// hides individually
			dt.on( 'column-visibility.dtr', function () {
				// Use a small debounce to allow multiple columns to be set together
				if ( that._timer ) {
					clearTimeout( that._timer );
				}

				that._timer = setTimeout( function () {
					that._timer = null;

					that._classLogic();
					that._resizeAuto();
					that._resize();

					that._redrawChildren();
				}, 100 );
			} );

			// Redraw the details box on each draw which will happen if the data
			// has changed. This is used until DataTables implements a native
			// `updated` event for rows
			dt.on( 'draw.dtr', function () {
				that._redrawChildren();
			} );

			$(dt.table().node()).addClass( 'dtr-'+details.type );
		}

		dt.on( 'column-reorder.dtr', function (e, settings, details) {
			that._classLogic();
			that._resizeAuto();
			that._resize();
		} );

		// Change in column sizes means we need to calc
		dt.on( 'column-sizing.dtr', function () {
			that._resizeAuto();
			that._resize();
		});

		// On Ajax reload we want to reopen any child rows which are displayed
		// by responsive
		dt.on( 'preXhr.dtr', function () {
			var rowIds = [];
			dt.rows().every( function () {
				if ( this.child.isShown() ) {
					rowIds.push( this.id(true) );
				}
			} );

			dt.one( 'draw.dtr', function () {
				that._resizeAuto();
				that._resize();

				dt.rows( rowIds ).every( function () {
					that._detailsDisplay( this, false );
				} );
			} );
		});

		dt.on( 'init.dtr', function (e, settings, details) {
			that._resizeAuto();
			that._resize();

			// If columns were hidden, then DataTables needs to adjust the
			// column sizing
			if ( $.inArray( false, that.s.current ) ) {
				dt.columns.adjust();
			}
		} );

		// First pass - draw the table for the current viewport size
		this._resize();
	},


	/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
	 * Private methods
	 */

	/**
	 * Calculate the visibility for the columns in a table for a given
	 * breakpoint. The result is pre-determined based on the class logic if
	 * class names are used to control all columns, but the width of the table
	 * is also used if there are columns which are to be automatically shown
	 * and hidden.
	 *
	 * @param  {string} breakpoint Breakpoint name to use for the calculation
	 * @return {array} Array of boolean values initiating the visibility of each
	 *   column.
	 *  @private
	 */
	_columnsVisiblity: function ( breakpoint )
	{
		var dt = this.s.dt;
		var columns = this.s.columns;
		var i, ien;

		// Create an array that defines the column ordering based first on the
		// column's priority, and secondly the column index. This allows the
		// columns to be removed from the right if the priority matches
		var order = columns
			.map( function ( col, idx ) {
				return {
					columnIdx: idx,
					priority: col.priority
				};
			} )
			.sort( function ( a, b ) {
				if ( a.priority !== b.priority ) {
					return a.priority - b.priority;
				}
				return a.columnIdx - b.columnIdx;
			} );

		// Class logic - determine which columns are in this breakpoint based
		// on the classes. If no class control (i.e. `auto`) then `-` is used
		// to indicate this to the rest of the function
		var display = $.map( columns, function ( col, i ) {
			if ( dt.column(i).visible() === false ) {
				return 'not-visible';
			}
			return col.auto && col.minWidth === null ?
				false :
				col.auto === true ?
					'-' :
					$.inArray( breakpoint, col.includeIn ) !== -1;
		} );

		// Auto column control - first pass: how much width is taken by the
		// ones that must be included from the non-auto columns
		var requiredWidth = 0;
		for ( i=0, ien=display.length ; i<ien ; i++ ) {
			if ( display[i] === true ) {
				requiredWidth += columns[i].minWidth;
			}
		}

		// Second pass, use up any remaining width for other columns. For
		// scrolling tables we need to subtract the width of the scrollbar. It
		// may not be requires which makes this sub-optimal, but it would
		// require another full redraw to make complete use of those extra few
		// pixels
		var scrolling = dt.settings()[0].oScroll;
		var bar = scrolling.sY || scrolling.sX ? scrolling.iBarWidth : 0;
		var widthAvailable = dt.table().container().offsetWidth - bar;
		var usedWidth = widthAvailable - requiredWidth;

		// Control column needs to always be included. This makes it sub-
		// optimal in terms of using the available with, but to stop layout
		// thrashing or overflow. Also we need to account for the control column
		// width first so we know how much width is available for the other
		// columns, since the control column might not be the first one shown
		for ( i=0, ien=display.length ; i<ien ; i++ ) {
			if ( columns[i].control ) {
				usedWidth -= columns[i].minWidth;
			}
		}

		// Allow columns to be shown (counting by priority and then right to
		// left) until we run out of room
		var empty = false;
		for ( i=0, ien=order.length ; i<ien ; i++ ) {
			var colIdx = order[i].columnIdx;

			if ( display[colIdx] === '-' && ! columns[colIdx].control && columns[colIdx].minWidth ) {
				// Once we've found a column that won't fit we don't let any
				// others display either, or columns might disappear in the
				// middle of the table
				if ( empty || usedWidth - columns[colIdx].minWidth < 0 ) {
					empty = true;
					display[colIdx] = false;
				}
				else {
					display[colIdx] = true;
				}

				usedWidth -= columns[colIdx].minWidth;
			}
		}

		// Determine if the 'control' column should be shown (if there is one).
		// This is the case when there is a hidden column (that is not the
		// control column). The two loops look inefficient here, but they are
		// trivial and will fly through. We need to know the outcome from the
		// first , before the action in the second can be taken
		var showControl = false;

		for ( i=0, ien=columns.length ; i<ien ; i++ ) {
			if ( ! columns[i].control && ! columns[i].never && display[i] === false ) {
				showControl = true;
				break;
			}
		}

		for ( i=0, ien=columns.length ; i<ien ; i++ ) {
			if ( columns[i].control ) {
				display[i] = showControl;
			}

			// Replace not visible string with false from the control column detection above
			if ( display[i] === 'not-visible' ) {
				display[i] = false;
			}
		}

		// Finally we need to make sure that there is at least one column that
		// is visible
		if ( $.inArray( true, display ) === -1 ) {
			display[0] = true;
		}

		return display;
	},


	/**
	 * Create the internal `columns` array with information about the columns
	 * for the table. This includes determining which breakpoints the column
	 * will appear in, based upon class names in the column, which makes up the
	 * vast majority of this method.
	 *
	 * @private
	 */
	_classLogic: function ()
	{
		var that = this;
		var calc = {};
		var breakpoints = this.c.breakpoints;
		var dt = this.s.dt;
		var columns = dt.columns().eq(0).map( function (i) {
			var column = this.column(i);
			var className = column.header().className;
			var priority = dt.settings()[0].aoColumns[i].responsivePriority;

			if ( priority === undefined ) {
				var dataPriority = $(column.header()).data('priority');

				priority = dataPriority !== undefined ?
					dataPriority * 1 :
					10000;
			}

			return {
				className: className,
				includeIn: [],
				auto:      false,
				control:   false,
				never:     className.match(/\bnever\b/) ? true : false,
				priority:  priority
			};
		} );

		// Simply add a breakpoint to `includeIn` array, ensuring that there are
		// no duplicates
		var add = function ( colIdx, name ) {
			var includeIn = columns[ colIdx ].includeIn;

			if ( $.inArray( name, includeIn ) === -1 ) {
				includeIn.push( name );
			}
		};

		var column = function ( colIdx, name, operator, matched ) {
			var size, i, ien;

			if ( ! operator ) {
				columns[ colIdx ].includeIn.push( name );
			}
			else if ( operator === 'max-' ) {
				// Add this breakpoint and all smaller
				size = that._find( name ).width;

				for ( i=0, ien=breakpoints.length ; i<ien ; i++ ) {
					if ( breakpoints[i].width <= size ) {
						add( colIdx, breakpoints[i].name );
					}
				}
			}
			else if ( operator === 'min-' ) {
				// Add this breakpoint and all larger
				size = that._find( name ).width;

				for ( i=0, ien=breakpoints.length ; i<ien ; i++ ) {
					if ( breakpoints[i].width >= size ) {
						add( colIdx, breakpoints[i].name );
					}
				}
			}
			else if ( operator === 'not-' ) {
				// Add all but this breakpoint
				for ( i=0, ien=breakpoints.length ; i<ien ; i++ ) {
					if ( breakpoints[i].name.indexOf( matched ) === -1 ) {
						add( colIdx, breakpoints[i].name );
					}
				}
			}
		};

		// Loop over each column and determine if it has a responsive control
		// class
		columns.each( function ( col, i ) {
			var classNames = col.className.split(' ');
			var hasClass = false;

			// Split the class name up so multiple rules can be applied if needed
			for ( var k=0, ken=classNames.length ; k<ken ; k++ ) {
				var className = $.trim( classNames[k] );

				if ( className === 'all' ) {
					// Include in all
					hasClass = true;
					col.includeIn = $.map( breakpoints, function (a) {
						return a.name;
					} );
					return;
				}
				else if ( className === 'none' || col.never ) {
					// Include in none (default) and no auto
					hasClass = true;
					return;
				}
				else if ( className === 'control' ) {
					// Special column that is only visible, when one of the other
					// columns is hidden. This is used for the details control
					hasClass = true;
					col.control = true;
					return;
				}

				$.each( breakpoints, function ( j, breakpoint ) {
					// Does this column have a class that matches this breakpoint?
					var brokenPoint = breakpoint.name.split('-');
					var re = new RegExp( '(min\\-|max\\-|not\\-)?('+brokenPoint[0]+')(\\-[_a-zA-Z0-9])?' );
					var match = className.match( re );

					if ( match ) {
						hasClass = true;

						if ( match[2] === brokenPoint[0] && match[3] === '-'+brokenPoint[1] ) {
							// Class name matches breakpoint name fully
							column( i, breakpoint.name, match[1], match[2]+match[3] );
						}
						else if ( match[2] === brokenPoint[0] && ! match[3] ) {
							// Class name matched primary breakpoint name with no qualifier
							column( i, breakpoint.name, match[1], match[2] );
						}
					}
				} );
			}

			// If there was no control class, then automatic sizing is used
			if ( ! hasClass ) {
				col.auto = true;
			}
		} );

		this.s.columns = columns;
	},


	/**
	 * Show the details for the child row
	 *
	 * @param  {DataTables.Api} row    API instance for the row
	 * @param  {boolean}        update Update flag
	 * @private
	 */
	_detailsDisplay: function ( row, update )
	{
		var that = this;
		var dt = this.s.dt;
		var details = this.c.details;

		if ( details && details.type !== false ) {
			var res = details.display( row, update, function () {
				return details.renderer(
					dt, row[0], that._detailsObj(row[0])
				);
			} );

			if ( res === true || res === false ) {
				$(dt.table().node()).triggerHandler( 'responsive-display.dt', [dt, row, res, update] );
			}
		}
	},


	/**
	 * Initialisation for the details handler
	 *
	 * @private
	 */
	_detailsInit: function ()
	{
		var that    = this;
		var dt      = this.s.dt;
		var details = this.c.details;

		// The inline type always uses the first child as the target
		if ( details.type === 'inline' ) {
			details.target = 'td:first-child, th:first-child';
		}

		// Keyboard accessibility
		dt.on( 'draw.dtr', function () {
			that._tabIndexes();
		} );
		that._tabIndexes(); // Initial draw has already happened

		$( dt.table().body() ).on( 'keyup.dtr', 'td, th', function (e) {
			if ( e.keyCode === 13 && $(this).data('dtr-keyboard') ) {
				$(this).click();
			}
		} );

		// type.target can be a string jQuery selector or a column index
		var target   = details.target;
		var selector = typeof target === 'string' ? target : 'td, th';

		// Click handler to show / hide the details rows when they are available
		$( dt.table().body() )
			.on( 'click.dtr mousedown.dtr mouseup.dtr', selector, function (e) {
				// If the table is not collapsed (i.e. there is no hidden columns)
				// then take no action
				if ( ! $(dt.table().node()).hasClass('collapsed' ) ) {
					return;
				}

				// Check that the row is actually a DataTable's controlled node
				if ( $.inArray( $(this).closest('tr').get(0), dt.rows().nodes().toArray() ) === -1 ) {
					return;
				}

				// For column index, we determine if we should act or not in the
				// handler - otherwise it is already okay
				if ( typeof target === 'number' ) {
					var targetIdx = target < 0 ?
						dt.columns().eq(0).length + target :
						target;

					if ( dt.cell( this ).index().column !== targetIdx ) {
						return;
					}
				}

				// $().closest() includes itself in its check
				var row = dt.row( $(this).closest('tr') );

				// Check event type to do an action
				if ( e.type === 'click' ) {
					// The renderer is given as a function so the caller can execute it
					// only when they need (i.e. if hiding there is no point is running
					// the renderer)
					that._detailsDisplay( row, false );
				}
				else if ( e.type === 'mousedown' ) {
					// For mouse users, prevent the focus ring from showing
					$(this).css('outline', 'none');
				}
				else if ( e.type === 'mouseup' ) {
					// And then re-allow at the end of the click
					$(this).blur().css('outline', '');
				}
			} );
	},


	/**
	 * Get the details to pass to a renderer for a row
	 * @param  {int} rowIdx Row index
	 * @private
	 */
	_detailsObj: function ( rowIdx )
	{
		var that = this;
		var dt = this.s.dt;

		return $.map( this.s.columns, function( col, i ) {
			// Never and control columns should not be passed to the renderer
			if ( col.never || col.control ) {
				return;
			}

			return {
				title:       dt.settings()[0].aoColumns[ i ].sTitle,
				data:        dt.cell( rowIdx, i ).render( that.c.orthogonal ),
				hidden:      dt.column( i ).visible() && !that.s.current[ i ],
				columnIndex: i,
				rowIndex:    rowIdx
			};
		} );
	},


	/**
	 * Find a breakpoint object from a name
	 *
	 * @param  {string} name Breakpoint name to find
	 * @return {object}      Breakpoint description object
	 * @private
	 */
	_find: function ( name )
	{
		var breakpoints = this.c.breakpoints;

		for ( var i=0, ien=breakpoints.length ; i<ien ; i++ ) {
			if ( breakpoints[i].name === name ) {
				return breakpoints[i];
			}
		}
	},


	/**
	 * Re-create the contents of the child rows as the display has changed in
	 * some way.
	 *
	 * @private
	 */
	_redrawChildren: function ()
	{
		var that = this;
		var dt = this.s.dt;

		dt.rows( {page: 'current'} ).iterator( 'row', function ( settings, idx ) {
			var row = dt.row( idx );

			that._detailsDisplay( dt.row( idx ), true );
		} );
	},


	/**
	 * Alter the table display for a resized viewport. This involves first
	 * determining what breakpoint the window currently is in, getting the
	 * column visibilities to apply and then setting them.
	 *
	 * @private
	 */
	_resize: function ()
	{
		var that = this;
		var dt = this.s.dt;
		var width = $(window).width();
		var breakpoints = this.c.breakpoints;
		var breakpoint = breakpoints[0].name;
		var columns = this.s.columns;
		var i, ien;
		var oldVis = this.s.current.slice();

		// Determine what breakpoint we are currently at
		for ( i=breakpoints.length-1 ; i>=0 ; i-- ) {
			if ( width <= breakpoints[i].width ) {
				breakpoint = breakpoints[i].name;
				break;
			}
		}
		
		// Show the columns for that break point
		var columnsVis = this._columnsVisiblity( breakpoint );
		this.s.current = columnsVis;

		// Set the class before the column visibility is changed so event
		// listeners know what the state is. Need to determine if there are
		// any columns that are not visible but can be shown
		var collapsedClass = false;
		for ( i=0, ien=columns.length ; i<ien ; i++ ) {
			if ( columnsVis[i] === false && ! columns[i].never && ! columns[i].control && ! dt.column(i).visible() === false ) {
				collapsedClass = true;
				break;
			}
		}

		$( dt.table().node() ).toggleClass( 'collapsed', collapsedClass );

		var changed = false;
		var visible = 0;

		dt.columns().eq(0).each( function ( colIdx, i ) {
			if ( columnsVis[i] === true ) {
				visible++;
			}

			if ( columnsVis[i] !== oldVis[i] ) {
				changed = true;
				that._setColumnVis( colIdx, columnsVis[i] );
			}
		} );

		if ( changed ) {
			this._redrawChildren();

			// Inform listeners of the change
			$(dt.table().node()).trigger( 'responsive-resize.dt', [dt, this.s.current] );

			// If no records, update the "No records" display element
			if ( dt.page.info().recordsDisplay === 0 ) {
				$('td', dt.table().body()).eq(0).attr('colspan', visible);
			}
		}
	},


	/**
	 * Determine the width of each column in the table so the auto column hiding
	 * has that information to work with. This method is never going to be 100%
	 * perfect since column widths can change slightly per page, but without
	 * seriously compromising performance this is quite effective.
	 *
	 * @private
	 */
	_resizeAuto: function ()
	{
		var dt = this.s.dt;
		var columns = this.s.columns;

		// Are we allowed to do auto sizing?
		if ( ! this.c.auto ) {
			return;
		}

		// Are there any columns that actually need auto-sizing, or do they all
		// have classes defined
		if ( $.inArray( true, $.map( columns, function (c) { return c.auto; } ) ) === -1 ) {
			return;
		}

		// Need to restore all children. They will be reinstated by a re-render
		if ( ! $.isEmptyObject( _childNodeStore ) ) {
			$.each( _childNodeStore, function ( key ) {
				var idx = key.split('-');

				_childNodesRestore( dt, idx[0]*1, idx[1]*1 );
			} );
		}

		// Clone the table with the current data in it
		var tableWidth   = dt.table().node().offsetWidth;
		var columnWidths = dt.columns;
		var clonedTable  = dt.table().node().cloneNode( false );
		var clonedHeader = $( dt.table().header().cloneNode( false ) ).appendTo( clonedTable );
		var clonedBody   = $( dt.table().body() ).clone( false, false ).empty().appendTo( clonedTable ); // use jQuery because of IE8

		// Header
		var headerCells = dt.columns()
			.header()
			.filter( function (idx) {
				return dt.column(idx).visible();
			} )
			.to$()
			.clone( false )
			.css( 'display', 'table-cell' )
			.css( 'min-width', 0 );

		// Body rows - we don't need to take account of DataTables' column
		// visibility since we implement our own here (hence the `display` set)
		$(clonedBody)
			.append( $(dt.rows( { page: 'current' } ).nodes()).clone( false ) )
			.find( 'th, td' ).css( 'display', '' );

		// Footer
		var footer = dt.table().footer();
		if ( footer ) {
			var clonedFooter = $( footer.cloneNode( false ) ).appendTo( clonedTable );
			var footerCells = dt.columns()
				.footer()
				.filter( function (idx) {
					return dt.column(idx).visible();
				} )
				.to$()
				.clone( false )
				.css( 'display', 'table-cell' );

			$('<tr/>')
				.append( footerCells )
				.appendTo( clonedFooter );
		}

		$('<tr/>')
			.append( headerCells )
			.appendTo( clonedHeader );

		// In the inline case extra padding is applied to the first column to
		// give space for the show / hide icon. We need to use this in the
		// calculation
		if ( this.c.details.type === 'inline' ) {
			$(clonedTable).addClass( 'dtr-inline collapsed' );
		}
		
		// It is unsafe to insert elements with the same name into the DOM
		// multiple times. For example, cloning and inserting a checked radio
		// clears the chcecked state of the original radio.
		$( clonedTable ).find( '[name]' ).removeAttr( 'name' );

		// A position absolute table would take the table out of the flow of
		// our container element, bypassing the height and width (Scroller)
		$( clonedTable ).css( 'position', 'relative' )
		
		var inserted = $('<div/>')
			.css( {
				width: 1,
				height: 1,
				overflow: 'hidden',
				clear: 'both'
			} )
			.append( clonedTable );

		inserted.insertBefore( dt.table().node() );

		// The cloned header now contains the smallest that each column can be
		headerCells.each( function (i) {
			var idx = dt.column.index( 'fromVisible', i );
			columns[ idx ].minWidth =  this.offsetWidth || 0;
		} );

		inserted.remove();
	},

	/**
	 * Set a column's visibility.
	 *
	 * We don't use DataTables' column visibility controls in order to ensure
	 * that column visibility can Responsive can no-exist. Since only IE8+ is
	 * supported (and all evergreen browsers of course) the control of the
	 * display attribute works well.
	 *
	 * @param {integer} col      Column index
	 * @param {boolean} showHide Show or hide (true or false)
	 * @private
	 */
	_setColumnVis: function ( col, showHide )
	{
		var dt = this.s.dt;
		var display = showHide ? '' : 'none'; // empty string will remove the attr

		$( dt.column( col ).header() ).css( 'display', display );
		$( dt.column( col ).footer() ).css( 'display', display );
		dt.column( col ).nodes().to$().css( 'display', display );

		// If the are child nodes stored, we might need to reinsert them
		if ( ! $.isEmptyObject( _childNodeStore ) ) {
			dt.cells( null, col ).indexes().each( function (idx) {
				_childNodesRestore( dt, idx.row, idx.column );
			} );
		}
	},


	/**
	 * Update the cell tab indexes for keyboard accessibility. This is called on
	 * every table draw - that is potentially inefficient, but also the least
	 * complex option given that column visibility can change on the fly. Its a
	 * shame user-focus was removed from CSS 3 UI, as it would have solved this
	 * issue with a single CSS statement.
	 *
	 * @private
	 */
	_tabIndexes: function ()
	{
		var dt = this.s.dt;
		var cells = dt.cells( { page: 'current' } ).nodes().to$();
		var ctx = dt.settings()[0];
		var target = this.c.details.target;

		cells.filter( '[data-dtr-keyboard]' ).removeData( '[data-dtr-keyboard]' );

		if ( typeof target === 'number' ) {
			dt.cells( null, target, { page: 'current' } ).nodes().to$()
				.attr( 'tabIndex', ctx.iTabIndex )
				.data( 'dtr-keyboard', 1 );
		}
		else {
			// This is a bit of a hack - we need to limit the selected nodes to just
			// those of this table
			if ( target === 'td:first-child, th:first-child' ) {
				target = '>td:first-child, >th:first-child';
			}

			$( target, dt.rows( { page: 'current' } ).nodes() )
				.attr( 'tabIndex', ctx.iTabIndex )
				.data( 'dtr-keyboard', 1 );
		}
	}
} );


/**
 * List of default breakpoints. Each item in the array is an object with two
 * properties:
 *
 * * `name` - the breakpoint name.
 * * `width` - the breakpoint width
 *
 * @name Responsive.breakpoints
 * @static
 */
Responsive.breakpoints = [
	{ name: 'desktop',  width: Infinity },
	{ name: 'tablet-l', width: 1024 },
	{ name: 'tablet-p', width: 768 },
	{ name: 'mobile-l', width: 480 },
	{ name: 'mobile-p', width: 320 }
];


/**
 * Display methods - functions which define how the hidden data should be shown
 * in the table.
 *
 * @namespace
 * @name Responsive.defaults
 * @static
 */
Responsive.display = {
	childRow: function ( row, update, render ) {
		if ( update ) {
			if ( $(row.node()).hasClass('parent') ) {
				row.child( render(), 'child' ).show();

				return true;
			}
		}
		else {
			if ( ! row.child.isShown()  ) {
				row.child( render(), 'child' ).show();
				$( row.node() ).addClass( 'parent' );

				return true;
			}
			else {
				row.child( false );
				$( row.node() ).removeClass( 'parent' );

				return false;
			}
		}
	},

	childRowImmediate: function ( row, update, render ) {
		if ( (! update && row.child.isShown()) || ! row.responsive.hasHidden() ) {
			// User interaction and the row is show, or nothing to show
			row.child( false );
			$( row.node() ).removeClass( 'parent' );

			return false;
		}
		else {
			// Display
			row.child( render(), 'child' ).show();
			$( row.node() ).addClass( 'parent' );

			return true;
		}
	},

	// This is a wrapper so the modal options for Bootstrap and jQuery UI can
	// have options passed into them. This specific one doesn't need to be a
	// function but it is for consistency in the `modal` name
	modal: function ( options ) {
		return function ( row, update, render ) {
			if ( ! update ) {
				// Show a modal
				var close = function () {
					modal.remove(); // will tidy events for us
					$(document).off( 'keypress.dtr' );
				};

				var modal = $('<div class="dtr-modal"/>')
					.append( $('<div class="dtr-modal-display"/>')
						.append( $('<div class="dtr-modal-content"/>')
							.append( render() )
						)
						.append( $('<div class="dtr-modal-close">&times;</div>' )
							.click( function () {
								close();
							} )
						)
					)
					.append( $('<div class="dtr-modal-background"/>')
						.click( function () {
							close();
						} )
					)
					.appendTo( 'body' );

				$(document).on( 'keyup.dtr', function (e) {
					if ( e.keyCode === 27 ) {
						e.stopPropagation();

						close();
					}
				} );
			}
			else {
				$('div.dtr-modal-content')
					.empty()
					.append( render() );
			}

			if ( options && options.header ) {
				$('div.dtr-modal-content').prepend(
					'<h2>'+options.header( row )+'</h2>'
				);
			}
		};
	}
};


var _childNodeStore = {};

function _childNodes( dt, row, col ) {
	var name = row+'-'+col;

	if ( _childNodeStore[ name ] ) {
		return _childNodeStore[ name ];
	}

	// https://jsperf.com/childnodes-array-slice-vs-loop
	var nodes = [];
	var children = dt.cell( row, col ).node().childNodes;
	for ( var i=0, ien=children.length ; i<ien ; i++ ) {
		nodes.push( children[i] );
	}

	_childNodeStore[ name ] = nodes;

	return nodes;
}

function _childNodesRestore( dt, row, col ) {
	var name = row+'-'+col;

	if ( ! _childNodeStore[ name ] ) {
		return;
	}

	var node = dt.cell( row, col ).node();
	var store = _childNodeStore[ name ];
	var parent = store[0].parentNode;
	var parentChildren = parent.childNodes;
	var a = [];

	for ( var i=0, ien=parentChildren.length ; i<ien ; i++ ) {
		a.push( parentChildren[i] );
	}

	for ( var j=0, jen=a.length ; j<jen ; j++ ) {
		node.appendChild( a[j] );
	}

	_childNodeStore[ name ] = undefined;
}


/**
 * Display methods - functions which define how the hidden data should be shown
 * in the table.
 *
 * @namespace
 * @name Responsive.defaults
 * @static
 */
Responsive.renderer = {
	listHiddenNodes: function () {
		return function ( api, rowIdx, columns ) {
			var ul = $('<ul data-dtr-index="'+rowIdx+'" class="dtr-details"/>');
			var found = false;

			var data = $.each( columns, function ( i, col ) {
				if ( col.hidden ) {
					$(
						'<li data-dtr-index="'+col.columnIndex+'" data-dt-row="'+col.rowIndex+'" data-dt-column="'+col.columnIndex+'">'+
							'<span class="dtr-title">'+
								col.title+
							'</span> '+
						'</li>'
					)
						.append( $('<span class="dtr-data"/>').append( _childNodes( api, col.rowIndex, col.columnIndex ) ) )// api.cell( col.rowIndex, col.columnIndex ).node().childNodes ) )
						.appendTo( ul );

					found = true;
				}
			} );

			return found ?
				ul :
				false;
		};
	},

	listHidden: function () {
		return function ( api, rowIdx, columns ) {
			var data = $.map( columns, function ( col ) {
				return col.hidden ?
					'<li data-dtr-index="'+col.columnIndex+'" data-dt-row="'+col.rowIndex+'" data-dt-column="'+col.columnIndex+'">'+
						'<span class="dtr-title">'+
							col.title+
						'</span> '+
						'<span class="dtr-data">'+
							col.data+
						'</span>'+
					'</li>' :
					'';
			} ).join('');

			return data ?
				$('<ul data-dtr-index="'+rowIdx+'" class="dtr-details"/>').append( data ) :
				false;
		}
	},

	tableAll: function ( options ) {
		options = $.extend( {
			tableClass: ''
		}, options );

		return function ( api, rowIdx, columns ) {
			var data = $.map( columns, function ( col ) {
				return '<tr data-dt-row="'+col.rowIndex+'" data-dt-column="'+col.columnIndex+'">'+
						'<td>'+col.title+':'+'</td> '+
						'<td>'+col.data+'</td>'+
					'</tr>';
			} ).join('');

			return $('<table class="'+options.tableClass+' dtr-details" width="100%"/>').append( data );
		}
	}
};

/**
 * Responsive default settings for initialisation
 *
 * @namespace
 * @name Responsive.defaults
 * @static
 */
Responsive.defaults = {
	/**
	 * List of breakpoints for the instance. Note that this means that each
	 * instance can have its own breakpoints. Additionally, the breakpoints
	 * cannot be changed once an instance has been creased.
	 *
	 * @type {Array}
	 * @default Takes the value of `Responsive.breakpoints`
	 */
	breakpoints: Responsive.breakpoints,

	/**
	 * Enable / disable auto hiding calculations. It can help to increase
	 * performance slightly if you disable this option, but all columns would
	 * need to have breakpoint classes assigned to them
	 *
	 * @type {Boolean}
	 * @default  `true`
	 */
	auto: true,

	/**
	 * Details control. If given as a string value, the `type` property of the
	 * default object is set to that value, and the defaults used for the rest
	 * of the object - this is for ease of implementation.
	 *
	 * The object consists of the following properties:
	 *
	 * * `display` - A function that is used to show and hide the hidden details
	 * * `renderer` - function that is called for display of the child row data.
	 *   The default function will show the data from the hidden columns
	 * * `target` - Used as the selector for what objects to attach the child
	 *   open / close to
	 * * `type` - `false` to disable the details display, `inline` or `column`
	 *   for the two control types
	 *
	 * @type {Object|string}
	 */
	details: {
		display: Responsive.display.childRow,

		renderer: Responsive.renderer.listHidden(),

		target: 0,

		type: 'inline'
	},

	/**
	 * Orthogonal data request option. This is used to define the data type
	 * requested when Responsive gets the data to show in the child row.
	 *
	 * @type {String}
	 */
	orthogonal: 'display'
};


/*
 * API
 */
var Api = $.fn.dataTable.Api;

// Doesn't do anything - work around for a bug in DT... Not documented
Api.register( 'responsive()', function () {
	return this;
} );

Api.register( 'responsive.index()', function ( li ) {
	li = $(li);

	return {
		column: li.data('dtr-index'),
		row:    li.parent().data('dtr-index')
	};
} );

Api.register( 'responsive.rebuild()', function () {
	return this.iterator( 'table', function ( ctx ) {
		if ( ctx._responsive ) {
			ctx._responsive._classLogic();
		}
	} );
} );

Api.register( 'responsive.recalc()', function () {
	return this.iterator( 'table', function ( ctx ) {
		if ( ctx._responsive ) {
			ctx._responsive._resizeAuto();
			ctx._responsive._resize();
		}
	} );
} );

Api.register( 'responsive.hasHidden()', function () {
	var ctx = this.context[0];

	return ctx._responsive ?
		$.inArray( false, ctx._responsive.s.current ) !== -1 :
		false;
} );

Api.registerPlural( 'columns().responsiveHidden()', 'column().responsiveHidden()', function () {
	return this.iterator( 'column', function ( settings, column ) {
		return settings._responsive ?
			settings._responsive.s.current[ column ] :
			false;
	}, 1 );
} );


/**
 * Version information
 *
 * @name Responsive.version
 * @static
 */
Responsive.version = '2.2.2';


$.fn.dataTable.Responsive = Responsive;
$.fn.DataTable.Responsive = Responsive;

// Attach a listener to the document which listens for DataTables initialisation
// events so we can automatically initialise
$(document).on( 'preInit.dt.dtr', function (e, settings, json) {
	if ( e.namespace !== 'dt' ) {
		return;
	}

	if ( $(settings.nTable).hasClass( 'responsive' ) ||
		 $(settings.nTable).hasClass( 'dt-responsive' ) ||
		 settings.oInit.responsive ||
		 DataTable.defaults.responsive
	) {
		var init = settings.oInit.responsive;

		if ( init !== false ) {
			new Responsive( settings, $.isPlainObject( init ) ? init : {}  );
		}
	}
} );


return Responsive;
}));


/*! Scroller 2.0.0
 * ©2011-2018 SpryMedia Ltd - datatables.net/license
 */

/**
 * @summary     Scroller
 * @description Virtual rendering for DataTables
 * @version     2.0.0
 * @file        dataTables.scroller.js
 * @author      SpryMedia Ltd (www.sprymedia.co.uk)
 * @contact     www.sprymedia.co.uk/contact
 * @copyright   Copyright 2011-2018 SpryMedia Ltd.
 *
 * This source file is free software, available under the following license:
 *   MIT license - http://datatables.net/license/mit
 *
 * This source file is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
 * or FITNESS FOR A PARTICULAR PURPOSE. See the license files for details.
 *
 * For details please refer to: http://www.datatables.net
 */

(function( factory ){
	if ( typeof define === 'function' && define.amd ) {
		// AMD
		define( ['jquery', 'datatables.net'], function ( $ ) {
			return factory( $, window, document );
		} );
	}
	else if ( typeof exports === 'object' ) {
		// CommonJS
		module.exports = function (root, $) {
			if ( ! root ) {
				root = window;
			}

			if ( ! $ || ! $.fn.dataTable ) {
				$ = require('datatables.net')(root, $).$;
			}

			return factory( $, root, root.document );
		};
	}
	else {
		// Browser
		factory( jQuery, window, document );
	}
}(function( $, window, document, undefined ) {
'use strict';
var DataTable = $.fn.dataTable;


/**
 * Scroller is a virtual rendering plug-in for DataTables which allows large
 * datasets to be drawn on screen every quickly. What the virtual rendering means
 * is that only the visible portion of the table (and a bit to either side to make
 * the scrolling smooth) is drawn, while the scrolling container gives the
 * visual impression that the whole table is visible. This is done by making use
 * of the pagination abilities of DataTables and moving the table around in the
 * scrolling container DataTables adds to the page. The scrolling container is
 * forced to the height it would be for the full table display using an extra
 * element.
 *
 * Note that rows in the table MUST all be the same height. Information in a cell
 * which expands on to multiple lines will cause some odd behaviour in the scrolling.
 *
 * Scroller is initialised by simply including the letter 'S' in the sDom for the
 * table you want to have this feature enabled on. Note that the 'S' must come
 * AFTER the 't' parameter in `dom`.
 *
 * Key features include:
 *   <ul class="limit_length">
 *     <li>Speed! The aim of Scroller for DataTables is to make rendering large data sets fast</li>
 *     <li>Full compatibility with deferred rendering in DataTables for maximum speed</li>
 *     <li>Display millions of rows</li>
 *     <li>Integration with state saving in DataTables (scrolling position is saved)</li>
 *     <li>Easy to use</li>
 *   </ul>
 *
 *  @class
 *  @constructor
 *  @global
 *  @param {object} dt DataTables settings object or API instance
 *  @param {object} [opts={}] Configuration object for FixedColumns. Options 
 *    are defined by {@link Scroller.defaults}
 *
 *  @requires jQuery 1.7+
 *  @requires DataTables 1.10.0+
 *
 *  @example
 *    $(document).ready(function() {
 *        $('#example').DataTable( {
 *            "scrollY": "200px",
 *            "ajax": "media/dataset/large.txt",
 *            "scroller": true,
 *            "deferRender": true
 *        } );
 *    } );
 */
var Scroller = function ( dt, opts ) {
	/* Sanity check - you just know it will happen */
	if ( ! (this instanceof Scroller) ) {
		alert( "Scroller warning: Scroller must be initialised with the 'new' keyword." );
		return;
	}

	if ( opts === undefined ) {
		opts = {};
	}

	var dtApi = $.fn.dataTable.Api( dt );

	/**
	 * Settings object which contains customisable information for the Scroller instance
	 * @namespace
	 * @private
	 * @extends Scroller.defaults
	 */
	this.s = {
		/**
		 * DataTables settings object
		 *  @type     object
		 *  @default  Passed in as first parameter to constructor
		 */
		dt: dtApi.settings()[0],

		/**
		 * DataTables API instance
		 *  @type     DataTable.Api
		 */
		dtApi: dtApi,

		/**
		 * Pixel location of the top of the drawn table in the viewport
		 *  @type     int
		 *  @default  0
		 */
		tableTop: 0,

		/**
		 * Pixel location of the bottom of the drawn table in the viewport
		 *  @type     int
		 *  @default  0
		 */
		tableBottom: 0,

		/**
		 * Pixel location of the boundary for when the next data set should be loaded and drawn
		 * when scrolling up the way.
		 *  @type     int
		 *  @default  0
		 *  @private
		 */
		redrawTop: 0,

		/**
		 * Pixel location of the boundary for when the next data set should be loaded and drawn
		 * when scrolling down the way. Note that this is actually calculated as the offset from
		 * the top.
		 *  @type     int
		 *  @default  0
		 *  @private
		 */
		redrawBottom: 0,

		/**
		 * Auto row height or not indicator
		 *  @type     bool
		 *  @default  0
		 */
		autoHeight: true,

		/**
		 * Number of rows calculated as visible in the visible viewport
		 *  @type     int
		 *  @default  0
		 */
		viewportRows: 0,

		/**
		 * setTimeout reference for state saving, used when state saving is enabled in the DataTable
		 * and when the user scrolls the viewport in order to stop the cookie set taking too much
		 * CPU!
		 *  @type     int
		 *  @default  0
		 */
		stateTO: null,

		/**
		 * setTimeout reference for the redraw, used when server-side processing is enabled in the
		 * DataTables in order to prevent DoSing the server
		 *  @type     int
		 *  @default  null
		 */
		drawTO: null,

		heights: {
			jump: null,
			page: null,
			virtual: null,
			scroll: null,

			/**
			 * Height of rows in the table
			 *  @type     int
			 *  @default  0
			 */
			row: null,

			/**
			 * Pixel height of the viewport
			 *  @type     int
			 *  @default  0
			 */
			viewport: null,
			labelFactor: 1
		},

		topRowFloat: 0,
		scrollDrawDiff: null,
		loaderVisible: false,
		forceReposition: false,
		baseRowTop: 0,
		baseScrollTop: 0,
		mousedown: false,
		lastScrollTop: 0
	};

	// @todo The defaults should extend a `c` property and the internal settings
	// only held in the `s` property. At the moment they are mixed
	this.s = $.extend( this.s, Scroller.oDefaults, opts );

	// Workaround for row height being read from height object (see above comment)
	this.s.heights.row = this.s.rowHeight;

	/**
	 * DOM elements used by the class instance
	 * @private
	 * @namespace
	 *
	 */
	this.dom = {
		"force":    document.createElement('div'),
		"label":    $('<div class="dts_label">0</div>'),
		"scroller": null,
		"table":    null,
		"loader":   null
	};

	// Attach the instance to the DataTables instance so it can be accessed in
	// future. Don't initialise Scroller twice on the same table
	if ( this.s.dt.oScroller ) {
		return;
	}

	this.s.dt.oScroller = this;

	/* Let's do it */
	this.construct();
};



$.extend( Scroller.prototype, {
	/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
	 * Public methods - to be exposed via the DataTables API
	 */

	/**
	 * Calculate and store information about how many rows are to be displayed
	 * in the scrolling viewport, based on current dimensions in the browser's
	 * rendering. This can be particularly useful if the table is initially
	 * drawn in a hidden element - for example in a tab.
	 *  @param {bool} [redraw=true] Redraw the table automatically after the recalculation, with
	 *    the new dimensions forming the basis for the draw.
	 *  @returns {void}
	 */
	measure: function ( redraw )
	{
		if ( this.s.autoHeight )
		{
			this._calcRowHeight();
		}

		var heights = this.s.heights;

		if ( heights.row ) {
			heights.viewport = $.contains(document, this.dom.scroller) ?
				this.dom.scroller.clientHeight :
				this._parseHeight($(this.dom.scroller).css('height'));

			// If collapsed (no height) use the max-height parameter
			if ( ! heights.viewport ) {
				heights.viewport = this._parseHeight($(this.dom.scroller).css('max-height'));
			}

			this.s.viewportRows = parseInt( heights.viewport / heights.row, 10 )+1;
			this.s.dt._iDisplayLength = this.s.viewportRows * this.s.displayBuffer;
		}

		var label = this.dom.label.outerHeight();
		heights.labelFactor = (heights.viewport-label) / heights.scroll;

		if ( redraw === undefined || redraw )
		{
			this.s.dt.oInstance.fnDraw( false );
		}
	},

	/**
	 * Get information about current displayed record range. This corresponds to
	 * the information usually displayed in the "Info" block of the table.
	 *
	 * @returns {object} info as an object:
	 *  {
	 *      start: {int}, // the 0-indexed record at the top of the viewport
	 *      end:   {int}, // the 0-indexed record at the bottom of the viewport
	 *  }
	*/
	pageInfo: function()
	{
		var 
			dt = this.s.dt,
			iScrollTop = this.dom.scroller.scrollTop,
			iTotal = dt.fnRecordsDisplay(),
			iPossibleEnd = Math.ceil(this.pixelsToRow(iScrollTop + this.s.heights.viewport, false, this.s.ani));

		return {
			start: Math.floor(this.pixelsToRow(iScrollTop, false, this.s.ani)),
			end: iTotal < iPossibleEnd ? iTotal-1 : iPossibleEnd-1
		};
	},

	/**
	 * Calculate the row number that will be found at the given pixel position
	 * (y-scroll).
	 *
	 * Please note that when the height of the full table exceeds 1 million
	 * pixels, Scroller switches into a non-linear mode for the scrollbar to fit
	 * all of the records into a finite area, but this function returns a linear
	 * value (relative to the last non-linear positioning).
	 *  @param {int} pixels Offset from top to calculate the row number of
	 *  @param {int} [intParse=true] If an integer value should be returned
	 *  @param {int} [virtual=false] Perform the calculations in the virtual domain
	 *  @returns {int} Row index
	 */
	pixelsToRow: function ( pixels, intParse, virtual )
	{
		var diff = pixels - this.s.baseScrollTop;
		var row = virtual ?
			(this._domain( 'physicalToVirtual', this.s.baseScrollTop ) + diff) / this.s.heights.row :
			( diff / this.s.heights.row ) + this.s.baseRowTop;

		return intParse || intParse === undefined ?
			parseInt( row, 10 ) :
			row;
	},

	/**
	 * Calculate the pixel position from the top of the scrolling container for
	 * a given row
	 *  @param {int} iRow Row number to calculate the position of
	 *  @returns {int} Pixels
	 */
	rowToPixels: function ( rowIdx, intParse, virtual )
	{
		var pixels;
		var diff = rowIdx - this.s.baseRowTop;

		if ( virtual ) {
			pixels = this._domain( 'virtualToPhysical', this.s.baseScrollTop );
			pixels += diff * this.s.heights.row;
		}
		else {
			pixels = this.s.baseScrollTop;
			pixels += diff * this.s.heights.row;
		}

		return intParse || intParse === undefined ?
			parseInt( pixels, 10 ) :
			pixels;
	},


	/**
	 * Calculate the row number that will be found at the given pixel position (y-scroll)
	 *  @param {int} row Row index to scroll to
	 *  @param {bool} [animate=true] Animate the transition or not
	 *  @returns {void}
	 */
	scrollToRow: function ( row, animate )
	{
		var that = this;
		var ani = false;
		var px = this.rowToPixels( row );

		// We need to know if the table will redraw or not before doing the
		// scroll. If it will not redraw, then we need to use the currently
		// displayed table, and scroll with the physical pixels. Otherwise, we
		// need to calculate the table's new position from the virtual
		// transform.
		var preRows = ((this.s.displayBuffer-1)/2) * this.s.viewportRows;
		var drawRow = row - preRows;
		if ( drawRow < 0 ) {
			drawRow = 0;
		}

		if ( (px > this.s.redrawBottom || px < this.s.redrawTop) && this.s.dt._iDisplayStart !== drawRow ) {
			ani = true;
			px = this._domain( 'virtualToPhysical', row * this.s.heights.row );

			// If we need records outside the current draw region, but the new
			// scrolling position is inside that (due to the non-linear nature
			// for larger numbers of records), we need to force position update.
			if ( this.s.redrawTop < px && px < this.s.redrawBottom ) {
				this.s.forceReposition = true;
				animate = false;
			}
		}

		if ( typeof animate == 'undefined' || animate )
		{
			this.s.ani = ani;
			$(this.dom.scroller).animate( {
				"scrollTop": px
			}, function () {
				// This needs to happen after the animation has completed and
				// the final scroll event fired
				setTimeout( function () {
					that.s.ani = false;
				}, 25 );
			} );
		}
		else
		{
			$(this.dom.scroller).scrollTop( px );
		}
	},


	/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
	 * Constructor
	 */

	/**
	 * Initialisation for Scroller
	 *  @returns {void}
	 *  @private
	 */
	construct: function ()
	{
		var that = this;
		var dt = this.s.dtApi;

		/* Sanity check */
		if ( !this.s.dt.oFeatures.bPaginate ) {
			this.s.dt.oApi._fnLog( this.s.dt, 0, 'Pagination must be enabled for Scroller' );
			return;
		}

		/* Insert a div element that we can use to force the DT scrolling container to
		 * the height that would be required if the whole table was being displayed
		 */
		this.dom.force.style.position = "relative";
		this.dom.force.style.top = "0px";
		this.dom.force.style.left = "0px";
		this.dom.force.style.width = "1px";

		this.dom.scroller = $('div.'+this.s.dt.oClasses.sScrollBody, this.s.dt.nTableWrapper)[0];
		this.dom.scroller.appendChild( this.dom.force );
		this.dom.scroller.style.position = "relative";

		this.dom.table = $('>table', this.dom.scroller)[0];
		this.dom.table.style.position = "absolute";
		this.dom.table.style.top = "0px";
		this.dom.table.style.left = "0px";

		// Add class to 'announce' that we are a Scroller table
		$(dt.table().container()).addClass('dts DTS');

		// Add a 'loading' indicator
		if ( this.s.loadingIndicator )
		{
			this.dom.loader = $('<div class="dataTables_processing dts_loading">'+this.s.dt.oLanguage.sLoadingRecords+'</div>')
				.css('display', 'none');

			$(this.dom.scroller.parentNode)
				.css('position', 'relative')
				.append( this.dom.loader );
		}

		this.dom.label.appendTo(this.dom.scroller);

		/* Initial size calculations */
		if ( this.s.heights.row && this.s.heights.row != 'auto' )
		{
			this.s.autoHeight = false;
		}
		this.measure( false );

		// Scrolling callback to see if a page change is needed - use a throttled
		// function for the save save callback so we aren't hitting it on every
		// scroll
		this.s.ingnoreScroll = true;
		this.s.stateSaveThrottle = this.s.dt.oApi._fnThrottle( function () {
			that.s.dtApi.state.save();
		}, 500 );
		$(this.dom.scroller).on( 'scroll.dt-scroller', function (e) {
			that._scroll.call( that );
		} );

		// In iOS we catch the touchstart event in case the user tries to scroll
		// while the display is already scrolling
		$(this.dom.scroller).on('touchstart.dt-scroller', function () {
			that._scroll.call( that );
		} );

		$(this.dom.scroller)
			.on('mousedown.dt-scroller', function () {
				that.s.mousedown = true;
			})
			.on('mouseup.dt-scroller', function () {
				that.s.mouseup = false;
				that.dom.label.css('display', 'none');
			});

		// On resize, update the information element, since the number of rows shown might change
		$(window).on( 'resize.dt-scroller', function () {
			that.measure( false );
			that._info();
		} );

		// Add a state saving parameter to the DT state saving so we can restore the exact
		// position of the scrolling. Slightly surprisingly the scroll position isn't actually
		// stored, but rather tha base units which are needed to calculate it. This allows for
		// virtual scrolling as well.
		var initialStateSave = true;
		var loadedState = dt.state.loaded();

		dt.on( 'stateSaveParams.scroller', function ( e, settings, data ) {
			// Need to used the saved position on init
			data.scroller = {
				topRow: initialStateSave && loadedState && loadedState.scroller ?
					loadedState.scroller.topRow :
					that.s.topRowFloat,
				baseScrollTop: that.s.baseScrollTop,
				baseRowTop: that.s.baseRowTop
			};

			initialStateSave = false;
		} );

		if ( loadedState && loadedState.scroller ) {
			this.s.topRowFloat = loadedState.scroller.topRow;
			this.s.baseScrollTop = loadedState.scroller.baseScrollTop;
			this.s.baseRowTop = loadedState.scroller.baseRowTop;
		}

		dt.on( 'init.scroller', function () {
			that.measure( false );

			that._draw();

			// Update the scroller when the DataTable is redrawn
			dt.on( 'draw.scroller', function () {
				that._draw();
			});
		} );

		// Set height before the draw happens, allowing everything else to update
		// on draw complete without worry for roder.
		dt.on( 'preDraw.dt.scroller', function () {
			that._scrollForce();
		} );

		// Destructor
		dt.on( 'destroy.scroller', function () {
			$(window).off( 'resize.dt-scroller' );
			$(that.dom.scroller).off('.dt-scroller');
			$(that.s.dt.nTable).off( '.scroller' );

			$(that.s.dt.nTableWrapper).removeClass('DTS');
			$('div.DTS_Loading', that.dom.scroller.parentNode).remove();

			that.dom.table.style.position = "";
			that.dom.table.style.top = "";
			that.dom.table.style.left = "";
		} );
	},


	/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
	 * Private methods
	 */

	/**
	 * Automatic calculation of table row height. This is just a little tricky here as using
	 * initialisation DataTables has tale the table out of the document, so we need to create
	 * a new table and insert it into the document, calculate the row height and then whip the
	 * table out.
	 *  @returns {void}
	 *  @private
	 */
	_calcRowHeight: function ()
	{
		var dt = this.s.dt;
		var origTable = dt.nTable;
		var nTable = origTable.cloneNode( false );
		var tbody = $('<tbody/>').appendTo( nTable );
		var container = $(
			'<div class="'+dt.oClasses.sWrapper+' DTS">'+
				'<div class="'+dt.oClasses.sScrollWrapper+'">'+
					'<div class="'+dt.oClasses.sScrollBody+'"></div>'+
				'</div>'+
			'</div>'
		);

		// Want 3 rows in the sizing table so :first-child and :last-child
		// CSS styles don't come into play - take the size of the middle row
		$('tbody tr:lt(4)', origTable).clone().appendTo( tbody );
        var rowsCount = $('tr', tbody).length;

        if ( rowsCount === 1 ) {
            tbody.prepend('<tr><td>&#160;</td></tr>');
            tbody.append('<tr><td>&#160;</td></tr>');
		}
		else {
            for (; rowsCount < 3; rowsCount++) {
                tbody.append('<tr><td>&#160;</td></tr>');
            }
		}
	
		$('div.'+dt.oClasses.sScrollBody, container).append( nTable );

		// If initialised using `dom`, use the holding element as the insert point
		var insertEl = this.s.dt.nHolding || origTable.parentNode;

		if ( ! $(insertEl).is(':visible') ) {
			insertEl = 'body';
		}

		container.appendTo( insertEl );
		this.s.heights.row = $('tr', tbody).eq(1).outerHeight();

		container.remove();
	},

	/**
	 * Draw callback function which is fired when the DataTable is redrawn. The main function of
	 * this method is to position the drawn table correctly the scrolling container for the rows
	 * that is displays as a result of the scrolling position.
	 *  @returns {void}
	 *  @private
	 */
	_draw: function ()
	{
		var
			that = this,
			heights = this.s.heights,
			iScrollTop = this.dom.scroller.scrollTop,
			iActualScrollTop = iScrollTop,
			iScrollBottom = iScrollTop + heights.viewport,
			iTableHeight = $(this.s.dt.nTable).height(),
			displayStart = this.s.dt._iDisplayStart,
			displayLen = this.s.dt._iDisplayLength,
			displayEnd = this.s.dt.fnRecordsDisplay();

		// Disable the scroll event listener while we are updating the DOM
		this.s.skip = true;

		// If paging is reset
		if ( (this.s.dt.bSorted || this.s.dt.bFiltered) && displayStart === 0 && !this.s.dt._drawHold ) {
			this.s.topRowFloat = 0;
		}

		iScrollTop = this.scrollType === 'jump' ?
			this._domain( 'physicalToVirtual', this.s.topRowFloat * heights.row ) :
			iScrollTop;

		// This doesn't work when scrolling with the mouse wheel
		$(that.dom.scroller).scrollTop(iScrollTop);

		// Store positional information so positional calculations can be based
		// upon the current table draw position
		this.s.baseScrollTop = iScrollTop;
		this.s.baseRowTop = this.s.topRowFloat;

		// Position the table in the virtual scroller
		var tableTop = iScrollTop - ((this.s.topRowFloat - displayStart) * heights.row);
		if ( displayStart === 0 ) {
			tableTop = 0;
		}
		else if ( displayStart + displayLen >= displayEnd ) {
			tableTop = heights.scroll - iTableHeight;
		}

		this.dom.table.style.top = tableTop+'px';

		/* Cache some information for the scroller */
		this.s.tableTop = tableTop;
		this.s.tableBottom = iTableHeight + this.s.tableTop;

		// Calculate the boundaries for where a redraw will be triggered by the
		// scroll event listener
		var boundaryPx = (iScrollTop - this.s.tableTop) * this.s.boundaryScale;
		this.s.redrawTop = iScrollTop - boundaryPx;
		this.s.redrawBottom = iScrollTop + boundaryPx > heights.scroll - heights.viewport - heights.row ?
			heights.scroll - heights.viewport - heights.row :
			iScrollTop + boundaryPx;

		this.s.skip = false;

		// Restore the scrolling position that was saved by DataTable's state
		// saving Note that this is done on the second draw when data is Ajax
		// sourced, and the first draw when DOM soured
		if ( this.s.dt.oFeatures.bStateSave && this.s.dt.oLoadedState !== null &&
			 typeof this.s.dt.oLoadedState.iScroller != 'undefined' )
		{
			// A quirk of DataTables is that the draw callback will occur on an
			// empty set if Ajax sourced, but not if server-side processing.
			var ajaxSourced = (this.s.dt.sAjaxSource || that.s.dt.ajax) && ! this.s.dt.oFeatures.bServerSide ?
				true :
				false;

			if ( ( ajaxSourced && this.s.dt.iDraw == 2) ||
			     (!ajaxSourced && this.s.dt.iDraw == 1) )
			{
				setTimeout( function () {
					$(that.dom.scroller).scrollTop( that.s.dt.oLoadedState.iScroller );
					that.s.redrawTop = that.s.dt.oLoadedState.iScroller - (heights.viewport/2);

					// In order to prevent layout thrashing we need another
					// small delay
					setTimeout( function () {
						that.s.ingnoreScroll = false;
					}, 0 );
				}, 0 );
			}
		}
		else {
			that.s.ingnoreScroll = false;
		}

		// Because of the order of the DT callbacks, the info update will
		// take precedence over the one we want here. So a 'thread' break is
		// needed.  Only add the thread break if bInfo is set
		if ( this.s.dt.oFeatures.bInfo ) {
			setTimeout( function () {
				that._info.call( that );
			}, 0 );
		}

		// Hide the loading indicator
		if ( this.dom.loader && this.s.loaderVisible ) {
			this.dom.loader.css( 'display', 'none' );
			this.s.loaderVisible = false;
		}
	},

	/**
	 * Convert from one domain to another. The physical domain is the actual
	 * pixel count on the screen, while the virtual is if we had browsers which
	 * had scrolling containers of infinite height (i.e. the absolute value)
	 *
	 *  @param {string} dir Domain transform direction, `virtualToPhysical` or
	 *    `physicalToVirtual` 
	 *  @returns {number} Calculated transform
	 *  @private
	 */
	_domain: function ( dir, val )
	{
		var heights = this.s.heights;
		var diff;
		var magic = 10000; // the point at which the non-linear calculations start to happen

		// If the virtual and physical height match, then we use a linear
		// transform between the two, allowing the scrollbar to be linear
		if ( heights.virtual === heights.scroll ) {
			return val;
		}

		// In the first 10k pixels and the last 10k pixels, we want the scrolling
		// to be linear. After that it can be non-linear. It would be unusual for
		// anyone to mouse wheel through that much.
		if ( val < magic ) {
			return val;
		}
		else if ( dir === 'virtualToPhysical' && val > heights.virtual - magic ) {
			diff = heights.virtual - val;
			return heights.scroll - diff;
		}
		else if ( dir === 'physicalToVirtual' && val > heights.scroll - magic ) {
			diff = heights.scroll - val;
			return heights.virtual - diff;
		}

		// Otherwise, we want a non-linear scrollbar to take account of the
		// redrawing regions at the start and end of the table, otherwise these
		// can stutter badly - on large tables 30px (for example) scroll might
		// be hundreds of rows, so the table would be redrawing every few px at
		// the start and end. Use a simple linear eq. to stop this, effectively
		// causing a kink in the scrolling ratio. It does mean the scrollbar is
		// non-linear, but with such massive data sets, the scrollbar is going
		// to be a best guess anyway
		var xMax = dir === 'virtualToPhysical' ?
			heights.virtual :
			heights.scroll;
		var yMax = dir === 'virtualToPhysical' ?
			heights.scroll :
			heights.virtual;

		var m = (yMax - magic) / (xMax - magic);
		var c = magic - (m*magic);

		return (m*val) + c;
	},

	/**
	 * Update any information elements that are controlled by the DataTable based on the scrolling
	 * viewport and what rows are visible in it. This function basically acts in the same way as
	 * _fnUpdateInfo in DataTables, and effectively replaces that function.
	 *  @returns {void}
	 *  @private
	 */
	_info: function ()
	{
		if ( !this.s.dt.oFeatures.bInfo )
		{
			return;
		}

		var
			dt = this.s.dt,
			language = dt.oLanguage,
			iScrollTop = this.dom.scroller.scrollTop,
			iStart = Math.floor( this.pixelsToRow(iScrollTop, false, this.s.ani)+1 ),
			iMax = dt.fnRecordsTotal(),
			iTotal = dt.fnRecordsDisplay(),
			iPossibleEnd = Math.ceil( this.pixelsToRow(iScrollTop+this.s.heights.viewport, false, this.s.ani) ),
			iEnd = iTotal < iPossibleEnd ? iTotal : iPossibleEnd,
			sStart = dt.fnFormatNumber( iStart ),
			sEnd = dt.fnFormatNumber( iEnd ),
			sMax = dt.fnFormatNumber( iMax ),
			sTotal = dt.fnFormatNumber( iTotal ),
			sOut;

		if ( dt.fnRecordsDisplay() === 0 &&
			   dt.fnRecordsDisplay() == dt.fnRecordsTotal() )
		{
			/* Empty record set */
			sOut = language.sInfoEmpty+ language.sInfoPostFix;
		}
		else if ( dt.fnRecordsDisplay() === 0 )
		{
			/* Empty record set after filtering */
			sOut = language.sInfoEmpty +' '+
				language.sInfoFiltered.replace('_MAX_', sMax)+
					language.sInfoPostFix;
		}
		else if ( dt.fnRecordsDisplay() == dt.fnRecordsTotal() )
		{
			/* Normal record set */
			sOut = language.sInfo.
					replace('_START_', sStart).
					replace('_END_',   sEnd).
					replace('_MAX_',   sMax).
					replace('_TOTAL_', sTotal)+
				language.sInfoPostFix;
		}
		else
		{
			/* Record set after filtering */
			sOut = language.sInfo.
					replace('_START_', sStart).
					replace('_END_',   sEnd).
					replace('_MAX_',   sMax).
					replace('_TOTAL_', sTotal) +' '+
				language.sInfoFiltered.replace(
					'_MAX_',
					dt.fnFormatNumber(dt.fnRecordsTotal())
				)+
				language.sInfoPostFix;
		}

		var callback = language.fnInfoCallback;
		if ( callback ) {
			sOut = callback.call( dt.oInstance,
				dt, iStart, iEnd, iMax, iTotal, sOut
			);
		}

		var n = dt.aanFeatures.i;
		if ( typeof n != 'undefined' )
		{
			for ( var i=0, iLen=n.length ; i<iLen ; i++ )
			{
				$(n[i]).html( sOut );
			}
		}

		// DT doesn't actually (yet) trigger this event, but it will in future
		$(dt.nTable).triggerHandler( 'info.dt' );
	},

	/**
	 * Parse CSS height property string as number
	 *
	 * An attempt is made to parse the string as a number. Currently supported units are 'px',
	 * 'vh', and 'rem'. 'em' is partially supported; it works as long as the parent element's
	 * font size matches the body element. Zero is returned for unrecognized strings.
	 *  @param {string} cssHeight CSS height property string
	 *  @returns {number} height
	 *  @private
	 */
	_parseHeight: function(cssHeight) {
		var height;
		var matches = /^([+-]?(?:\d+(?:\.\d+)?|\.\d+))(px|em|rem|vh)$/.exec(cssHeight);

		if (matches === null) {
			return 0;
		}

		var value = parseFloat(matches[1]);
		var unit = matches[2];

		if ( unit === 'px' ) {
			height = value;
		}
		else if ( unit === 'vh' ) {
			height = ( value / 100 ) * $(window).height();
		}
		else if ( unit === 'rem' ) {
			height = value * parseFloat($(':root').css('font-size'));
		}
		else if ( unit === 'em' ) {
			height = value * parseFloat($('body').css('font-size'));
		}

		return height ?
			height :
			0;
	},

	/**
	 * Scrolling function - fired whenever the scrolling position is changed.
	 * This method needs to use the stored values to see if the table should be
	 * redrawn as we are moving towards the end of the information that is
	 * currently drawn or not. If needed, then it will redraw the table based on
	 * the new position.
	 *  @returns {void}
	 *  @private
	 */
	_scroll: function ()
	{
		var
			that = this,
			heights = this.s.heights,
			iScrollTop = this.dom.scroller.scrollTop,
			iTopRow;

		if ( this.s.skip ) {
			return;
		}

		if ( this.s.ingnoreScroll ) {
			return;
		}

		if ( iScrollTop === this.s.lastScrollTop ) {
			return;
		}

		/* If the table has been sorted or filtered, then we use the redraw that
		 * DataTables as done, rather than performing our own
		 */
		if ( this.s.dt.bFiltered || this.s.dt.bSorted ) {
			this.s.lastScrollTop = 0;
			return;
		}

		/* Update the table's information display for what is now in the viewport */
		this._info();

		/* We don't want to state save on every scroll event - that's heavy
		 * handed, so use a timeout to update the state saving only when the
		 * scrolling has finished
		 */
		clearTimeout( this.s.stateTO );
		this.s.stateTO = setTimeout( function () {
			that.s.dtApi.state.save();
		}, 250 );

		this.s.scrollType = Math.abs(iScrollTop - this.s.lastScrollTop) > heights.viewport ?
			'jump' :
			'cont';

		this.s.topRowFloat = this.s.scrollType === 'cont' ?
			this.pixelsToRow( iScrollTop, false, false ) :
			this._domain( 'physicalToVirtual', iScrollTop ) / heights.row;

		if ( this.s.topRowFloat < 0 ) {
			this.s.topRowFloat = 0;
		}

		/* Check if the scroll point is outside the trigger boundary which would required
		 * a DataTables redraw
		 */
		if ( this.s.forceReposition || iScrollTop < this.s.redrawTop || iScrollTop > this.s.redrawBottom ) {
			var preRows = Math.ceil( ((this.s.displayBuffer-1)/2) * this.s.viewportRows );

			iTopRow = parseInt(this.s.topRowFloat, 10) - preRows;
			this.s.forceReposition = false;

			if ( iTopRow <= 0 ) {
				/* At the start of the table */
				iTopRow = 0;
			}
			else if ( iTopRow + this.s.dt._iDisplayLength > this.s.dt.fnRecordsDisplay() ) {
				/* At the end of the table */
				iTopRow = this.s.dt.fnRecordsDisplay() - this.s.dt._iDisplayLength;
				if ( iTopRow < 0 ) {
					iTopRow = 0;
				}
			}
			else if ( iTopRow % 2 !== 0 ) {
				// For the row-striping classes (odd/even) we want only to start
				// on evens otherwise the stripes will change between draws and
				// look rubbish
				iTopRow++;
			}


			if ( iTopRow != this.s.dt._iDisplayStart ) {
				/* Cache the new table position for quick lookups */
				this.s.tableTop = $(this.s.dt.nTable).offset().top;
				this.s.tableBottom = $(this.s.dt.nTable).height() + this.s.tableTop;

				var draw =  function () {
					if ( that.s.scrollDrawReq === null ) {
						that.s.scrollDrawReq = iScrollTop;
					}

					that.s.dt._iDisplayStart = iTopRow;
					that.s.dt.oApi._fnDraw( that.s.dt );
				};

				/* Do the DataTables redraw based on the calculated start point - note that when
				 * using server-side processing we introduce a small delay to not DoS the server...
				 */
				if ( this.s.dt.oFeatures.bServerSide ) {
					clearTimeout( this.s.drawTO );
					this.s.drawTO = setTimeout( draw, this.s.serverWait );
				}
				else {
					draw();
				}

				if ( this.dom.loader && ! this.s.loaderVisible ) {
					this.dom.loader.css( 'display', 'block' );
					this.s.loaderVisible = true;
				}
			}
		}
		else {
			this.s.topRowFloat = this.pixelsToRow( iScrollTop, false, true );
		}

		this.s.lastScrollTop = iScrollTop;
		this.s.stateSaveThrottle();

		if ( this.s.scrollType === 'jump' && this.s.mousedown ) {
			this.dom.label
				.html( this.s.dt.fnFormatNumber( parseInt( this.s.topRowFloat, 10 )+1 ) )
				.css( 'top', iScrollTop + (iScrollTop * heights.labelFactor ) )
				.css( 'display', 'block' );
		}
	},

	/**
	 * Force the scrolling container to have height beyond that of just the
	 * table that has been drawn so the user can scroll the whole data set.
	 *
	 * Note that if the calculated required scrolling height exceeds a maximum
	 * value (1 million pixels - hard-coded) the forcing element will be set
	 * only to that maximum value and virtual / physical domain transforms will
	 * be used to allow Scroller to display tables of any number of records.
	 *  @returns {void}
	 *  @private
	 */
	_scrollForce: function ()
	{
		var heights = this.s.heights;
		var max = 1000000;

		heights.virtual = heights.row * this.s.dt.fnRecordsDisplay();
		heights.scroll = heights.virtual;

		if ( heights.scroll > max ) {
			heights.scroll = max;
		}

		// Minimum height so there is always a row visible (the 'no rows found'
		// if reduced to zero filtering)
		this.dom.force.style.height = heights.scroll > this.s.heights.row ?
			heights.scroll+'px' :
			this.s.heights.row+'px';
	}
} );



/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 * Statics
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */


/**
 * Scroller default settings for initialisation
 *  @namespace
 *  @name Scroller.defaults
 *  @static
 */
Scroller.defaults = {
	/**
	 * Scroller uses the boundary scaling factor to decide when to redraw the table - which it
	 * typically does before you reach the end of the currently loaded data set (in order to
	 * allow the data to look continuous to a user scrolling through the data). If given as 0
	 * then the table will be redrawn whenever the viewport is scrolled, while 1 would not
	 * redraw the table until the currently loaded data has all been shown. You will want
	 * something in the middle - the default factor of 0.5 is usually suitable.
	 *  @type     float
	 *  @default  0.5
	 *  @static
	 */
	boundaryScale: 0.5,

	/**
	 * The display buffer is what Scroller uses to calculate how many rows it should pre-fetch
	 * for scrolling. Scroller automatically adjusts DataTables' display length to pre-fetch
	 * rows that will be shown in "near scrolling" (i.e. just beyond the current display area).
	 * The value is based upon the number of rows that can be displayed in the viewport (i.e.
	 * a value of 1), and will apply the display range to records before before and after the
	 * current viewport - i.e. a factor of 3 will allow Scroller to pre-fetch 1 viewport's worth
	 * of rows before the current viewport, the current viewport's rows and 1 viewport's worth
	 * of rows after the current viewport. Adjusting this value can be useful for ensuring
	 * smooth scrolling based on your data set.
	 *  @type     int
	 *  @default  7
	 *  @static
	 */
	displayBuffer: 9,

	/**
	 * Show (or not) the loading element in the background of the table. Note that you should
	 * include the dataTables.scroller.css file for this to be displayed correctly.
	 *  @type     boolean
	 *  @default  false
	 *  @static
	 */
	loadingIndicator: false,

	/**
	 * Scroller will attempt to automatically calculate the height of rows for it's internal
	 * calculations. However the height that is used can be overridden using this parameter.
	 *  @type     int|string
	 *  @default  auto
	 *  @static
	 */
	rowHeight: "auto",

	/**
	 * When using server-side processing, Scroller will wait a small amount of time to allow
	 * the scrolling to finish before requesting more data from the server. This prevents
	 * you from DoSing your own server! The wait time can be configured by this parameter.
	 *  @type     int
	 *  @default  200
	 *  @static
	 */
	serverWait: 200
};

Scroller.oDefaults = Scroller.defaults;



/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 * Constants
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */

/**
 * Scroller version
 *  @type      String
 *  @default   See code
 *  @name      Scroller.version
 *  @static
 */
Scroller.version = "2.0.0";



/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 * Initialisation
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */

// Attach a listener to the document which listens for DataTables initialisation
// events so we can automatically initialise
$(document).on( 'preInit.dt.dtscroller', function (e, settings) {
	if ( e.namespace !== 'dt' ) {
		return;
	}

	var init = settings.oInit.scroller;
	var defaults = DataTable.defaults.scroller;

	if ( init || defaults ) {
		var opts = $.extend( {}, init, defaults );

		if ( init !== false ) {
			new Scroller( settings, opts  );
		}
	}
} );


// Attach Scroller to DataTables so it can be accessed as an 'extra'
$.fn.dataTable.Scroller = Scroller;
$.fn.DataTable.Scroller = Scroller;


// DataTables 1.10 API method aliases
var Api = $.fn.dataTable.Api;

Api.register( 'scroller()', function () {
	return this;
} );

// Undocumented and deprecated - is it actually useful at all?
Api.register( 'scroller().rowToPixels()', function ( rowIdx, intParse, virtual ) {
	var ctx = this.context;

	if ( ctx.length && ctx[0].oScroller ) {
		return ctx[0].oScroller.rowToPixels( rowIdx, intParse, virtual );
	}
	// undefined
} );

// Undocumented and deprecated - is it actually useful at all?
Api.register( 'scroller().pixelsToRow()', function ( pixels, intParse, virtual ) {
	var ctx = this.context;

	if ( ctx.length && ctx[0].oScroller ) {
		return ctx[0].oScroller.pixelsToRow( pixels, intParse, virtual );
	}
	// undefined
} );

// `scroller().scrollToRow()` is undocumented and deprecated. Use `scroller.toPosition()
Api.register( ['scroller().scrollToRow()', 'scroller.toPosition()'], function ( idx, ani ) {
	this.iterator( 'table', function ( ctx ) {
		if ( ctx.oScroller ) {
			ctx.oScroller.scrollToRow( idx, ani );
		}
	} );

	return this;
} );

Api.register( 'row().scrollTo()', function ( ani ) {
	var that = this;

	this.iterator( 'row', function ( ctx, rowIdx ) {
		if ( ctx.oScroller ) {
			var displayIdx = that
				.rows( { order: 'applied', search: 'applied' } )
				.indexes()
				.indexOf( rowIdx );

			ctx.oScroller.scrollToRow( displayIdx, ani );
		}
	} );

	return this;
} );

Api.register( 'scroller.measure()', function ( redraw ) {
	this.iterator( 'table', function ( ctx ) {
		if ( ctx.oScroller ) {
			ctx.oScroller.measure( redraw );
		}
	} );

	return this;
} );

Api.register( 'scroller.page()', function() {
	var ctx = this.context;

	if ( ctx.length && ctx[0].oScroller ) {
		return ctx[0].oScroller.pageInfo();
	}
	// undefined
} );

return Scroller;
}));


/*! Select for DataTables 1.3.0
 * 2015-2018 SpryMedia Ltd - datatables.net/license/mit
 */

/**
 * @summary     Select for DataTables
 * @description A collection of API methods, events and buttons for DataTables
 *   that provides selection options of the items in a DataTable
 * @version     1.3.0
 * @file        dataTables.select.js
 * @author      SpryMedia Ltd (www.sprymedia.co.uk)
 * @contact     datatables.net/forums
 * @copyright   Copyright 2015-2018 SpryMedia Ltd.
 *
 * This source file is free software, available under the following license:
 *   MIT license - http://datatables.net/license/mit
 *
 * This source file is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
 * or FITNESS FOR A PARTICULAR PURPOSE. See the license files for details.
 *
 * For details please refer to: http://www.datatables.net/extensions/select
 */
(function( factory ){
	if ( typeof define === 'function' && define.amd ) {
		// AMD
		define( ['jquery', 'datatables.net'], function ( $ ) {
			return factory( $, window, document );
		} );
	}
	else if ( typeof exports === 'object' ) {
		// CommonJS
		module.exports = function (root, $) {
			if ( ! root ) {
				root = window;
			}

			if ( ! $ || ! $.fn.dataTable ) {
				$ = require('datatables.net')(root, $).$;
			}

			return factory( $, root, root.document );
		};
	}
	else {
		// Browser
		factory( jQuery, window, document );
	}
}(function( $, window, document, undefined ) {
'use strict';
var DataTable = $.fn.dataTable;


// Version information for debugger
DataTable.select = {};

DataTable.select.version = '1.3.0';

DataTable.select.init = function ( dt ) {
	var ctx = dt.settings()[0];
	var init = ctx.oInit.select;
	var defaults = DataTable.defaults.select;
	var opts = init === undefined ?
		defaults :
		init;

	// Set defaults
	var items = 'row';
	var style = 'api';
	var blurable = false;
	var info = true;
	var selector = 'td, th';
	var className = 'selected';
	var setStyle = false;

	ctx._select = {};

	// Initialisation customisations
	if ( opts === true ) {
		style = 'os';
		setStyle = true;
	}
	else if ( typeof opts === 'string' ) {
		style = opts;
		setStyle = true;
	}
	else if ( $.isPlainObject( opts ) ) {
		if ( opts.blurable !== undefined ) {
			blurable = opts.blurable;
		}

		if ( opts.info !== undefined ) {
			info = opts.info;
		}

		if ( opts.items !== undefined ) {
			items = opts.items;
		}

		if ( opts.style !== undefined ) {
			style = opts.style;
			setStyle = true;
		}
		else {
			style = 'os';
			setStyle = true;
		}

		if ( opts.selector !== undefined ) {
			selector = opts.selector;
		}

		if ( opts.className !== undefined ) {
			className = opts.className;
		}
	}

	dt.select.selector( selector );
	dt.select.items( items );
	dt.select.style( style );
	dt.select.blurable( blurable );
	dt.select.info( info );
	ctx._select.className = className;


	// Sort table based on selected rows. Requires Select Datatables extension
	$.fn.dataTable.ext.order['select-checkbox'] = function ( settings, col ) {
		return this.api().column( col, {order: 'index'} ).nodes().map( function ( td ) {
			if ( settings._select.items === 'row' ) {
				return $( td ).parent().hasClass( settings._select.className );
			} else if ( settings._select.items === 'cell' ) {
				return $( td ).hasClass( settings._select.className );
			}
			return false;
		});
	};

	// If the init options haven't enabled select, but there is a selectable
	// class name, then enable
	if ( ! setStyle && $( dt.table().node() ).hasClass( 'selectable' ) ) {
		dt.select.style( 'os' );
	}
};

/*

Select is a collection of API methods, event handlers, event emitters and
buttons (for the `Buttons` extension) for DataTables. It provides the following
features, with an overview of how they are implemented:

## Selection of rows, columns and cells. Whether an item is selected or not is
   stored in:

* rows: a `_select_selected` property which contains a boolean value of the
  DataTables' `aoData` object for each row
* columns: a `_select_selected` property which contains a boolean value of the
  DataTables' `aoColumns` object for each column
* cells: a `_selected_cells` property which contains an array of boolean values
  of the `aoData` object for each row. The array is the same length as the
  columns array, with each element of it representing a cell.

This method of using boolean flags allows Select to operate when nodes have not
been created for rows / cells (DataTables' defer rendering feature).

## API methods

A range of API methods are available for triggering selection and de-selection
of rows. Methods are also available to configure the selection events that can
be triggered by an end user (such as which items are to be selected). To a large
extent, these of API methods *is* Select. It is basically a collection of helper
functions that can be used to select items in a DataTable.

Configuration of select is held in the object `_select` which is attached to the
DataTables settings object on initialisation. Select being available on a table
is not optional when Select is loaded, but its default is for selection only to
be available via the API - so the end user wouldn't be able to select rows
without additional configuration.

The `_select` object contains the following properties:

```
{
	items:string     - Can be `rows`, `columns` or `cells`. Defines what item 
	                   will be selected if the user is allowed to activate row
	                   selection using the mouse.
	style:string     - Can be `none`, `single`, `multi` or `os`. Defines the
	                   interaction style when selecting items
	blurable:boolean - If row selection can be cleared by clicking outside of
	                   the table
	info:boolean     - If the selection summary should be shown in the table
	                   information elements
}
```

In addition to the API methods, Select also extends the DataTables selector
options for rows, columns and cells adding a `selected` option to the selector
options object, allowing the developer to select only selected items or
unselected items.

## Mouse selection of items

Clicking on items can be used to select items. This is done by a simple event
handler that will select the items using the API methods.

 */


/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 * Local functions
 */

/**
 * Add one or more cells to the selection when shift clicking in OS selection
 * style cell selection.
 *
 * Cell range is more complicated than row and column as we want to select
 * in the visible grid rather than by index in sequence. For example, if you
 * click first in cell 1-1 and then shift click in 2-2 - cells 1-2 and 2-1
 * should also be selected (and not 1-3, 1-4. etc)
 * 
 * @param  {DataTable.Api} dt   DataTable
 * @param  {object}        idx  Cell index to select to
 * @param  {object}        last Cell index to select from
 * @private
 */
function cellRange( dt, idx, last )
{
	var indexes;
	var columnIndexes;
	var rowIndexes;
	var selectColumns = function ( start, end ) {
		if ( start > end ) {
			var tmp = end;
			end = start;
			start = tmp;
		}
		
		var record = false;
		return dt.columns( ':visible' ).indexes().filter( function (i) {
			if ( i === start ) {
				record = true;
			}
			
			if ( i === end ) { // not else if, as start might === end
				record = false;
				return true;
			}

			return record;
		} );
	};

	var selectRows = function ( start, end ) {
		var indexes = dt.rows( { search: 'applied' } ).indexes();

		// Which comes first - might need to swap
		if ( indexes.indexOf( start ) > indexes.indexOf( end ) ) {
			var tmp = end;
			end = start;
			start = tmp;
		}

		var record = false;
		return indexes.filter( function (i) {
			if ( i === start ) {
				record = true;
			}
			
			if ( i === end ) {
				record = false;
				return true;
			}

			return record;
		} );
	};

	if ( ! dt.cells( { selected: true } ).any() && ! last ) {
		// select from the top left cell to this one
		columnIndexes = selectColumns( 0, idx.column );
		rowIndexes = selectRows( 0 , idx.row );
	}
	else {
		// Get column indexes between old and new
		columnIndexes = selectColumns( last.column, idx.column );
		rowIndexes = selectRows( last.row , idx.row );
	}

	indexes = dt.cells( rowIndexes, columnIndexes ).flatten();

	if ( ! dt.cells( idx, { selected: true } ).any() ) {
		// Select range
		dt.cells( indexes ).select();
	}
	else {
		// Deselect range
		dt.cells( indexes ).deselect();
	}
}

/**
 * Disable mouse selection by removing the selectors
 *
 * @param {DataTable.Api} dt DataTable to remove events from
 * @private
 */
function disableMouseSelection( dt )
{
	var ctx = dt.settings()[0];
	var selector = ctx._select.selector;

	$( dt.table().container() )
		.off( 'mousedown.dtSelect', selector )
		.off( 'mouseup.dtSelect', selector )
		.off( 'click.dtSelect', selector );

	$('body').off( 'click.dtSelect' + dt.table().node().id );
}

/**
 * Attach mouse listeners to the table to allow mouse selection of items
 *
 * @param {DataTable.Api} dt DataTable to remove events from
 * @private
 */
function enableMouseSelection ( dt )
{
	var container = $( dt.table().container() );
	var ctx = dt.settings()[0];
	var selector = ctx._select.selector;
	var matchSelection;

	container
		.on( 'mousedown.dtSelect', selector, function(e) {
			// Disallow text selection for shift clicking on the table so multi
			// element selection doesn't look terrible!
			if ( e.shiftKey || e.metaKey || e.ctrlKey ) {
				container
					.css( '-moz-user-select', 'none' )
					.one('selectstart.dtSelect', selector, function () {
						return false;
					} );
			}

			if ( window.getSelection ) {
				matchSelection = window.getSelection();
			}
		} )
		.on( 'mouseup.dtSelect', selector, function() {
			// Allow text selection to occur again, Mozilla style (tested in FF
			// 35.0.1 - still required)
			container.css( '-moz-user-select', '' );
		} )
		.on( 'click.dtSelect', selector, function ( e ) {
			var items = dt.select.items();
			var idx;

			// If text was selected (click and drag), then we shouldn't change
			// the row's selected state
			if ( matchSelection ) {
				var selection = window.getSelection();

				// If the element that contains the selection is not in the table, we can ignore it
				// This can happen if the developer selects text from the click event
				if ( ! selection.anchorNode || $(selection.anchorNode).closest('table')[0] === dt.table().node() ) {
					if ( selection !== matchSelection ) {
						return;
					}
				}
			}

			var ctx = dt.settings()[0];
			var wrapperClass = $.trim(dt.settings()[0].oClasses.sWrapper).replace(/ +/g, '.');

			// Ignore clicks inside a sub-table
			if ( $(e.target).closest('div.'+wrapperClass)[0] != dt.table().container() ) {
				return;
			}

			var cell = dt.cell( $(e.target).closest('td, th') );

			// Check the cell actually belongs to the host DataTable (so child
			// rows, etc, are ignored)
			if ( ! cell.any() ) {
				return;
			}

			var event = $.Event('user-select.dt');
			eventTrigger( dt, event, [ items, cell, e ] );

			if ( event.isDefaultPrevented() ) {
				return;
			}

			var cellIndex = cell.index();
			if ( items === 'row' ) {
				idx = cellIndex.row;
				typeSelect( e, dt, ctx, 'row', idx );
			}
			else if ( items === 'column' ) {
				idx = cell.index().column;
				typeSelect( e, dt, ctx, 'column', idx );
			}
			else if ( items === 'cell' ) {
				idx = cell.index();
				typeSelect( e, dt, ctx, 'cell', idx );
			}

			ctx._select_lastCell = cellIndex;
		} );

	// Blurable
	$('body').on( 'click.dtSelect' + dt.table().node().id, function ( e ) {
		if ( ctx._select.blurable ) {
			// If the click was inside the DataTables container, don't blur
			if ( $(e.target).parents().filter( dt.table().container() ).length ) {
				return;
			}

			// Ignore elements which have been removed from the DOM (i.e. paging
			// buttons)
			if ( $(e.target).parents('html').length === 0 ) {
			 	return;
			}

			// Don't blur in Editor form
			if ( $(e.target).parents('div.DTE').length ) {
				return;
			}

			clear( ctx, true );
		}
	} );
}

/**
 * Trigger an event on a DataTable
 *
 * @param {DataTable.Api} api      DataTable to trigger events on
 * @param  {boolean}      selected true if selected, false if deselected
 * @param  {string}       type     Item type acting on
 * @param  {boolean}      any      Require that there are values before
 *     triggering
 * @private
 */
function eventTrigger ( api, type, args, any )
{
	if ( any && ! api.flatten().length ) {
		return;
	}

	if ( typeof type === 'string' ) {
		type = type +'.dt';
	}

	args.unshift( api );

	$(api.table().node()).trigger( type, args );
}

/**
 * Update the information element of the DataTable showing information about the
 * items selected. This is done by adding tags to the existing text
 * 
 * @param {DataTable.Api} api DataTable to update
 * @private
 */
function info ( api )
{
	var ctx = api.settings()[0];

	if ( ! ctx._select.info || ! ctx.aanFeatures.i ) {
		return;
	}

	if ( api.select.style() === 'api' ) {
		return;
	}

	var rows    = api.rows( { selected: true } ).flatten().length;
	var columns = api.columns( { selected: true } ).flatten().length;
	var cells   = api.cells( { selected: true } ).flatten().length;

	var add = function ( el, name, num ) {
		el.append( $('<span class="select-item"/>').append( api.i18n(
			'select.'+name+'s',
			{ _: '%d '+name+'s selected', 0: '', 1: '1 '+name+' selected' },
			num
		) ) );
	};

	// Internal knowledge of DataTables to loop over all information elements
	$.each( ctx.aanFeatures.i, function ( i, el ) {
		el = $(el);

		var output  = $('<span class="select-info"/>');
		add( output, 'row', rows );
		add( output, 'column', columns );
		add( output, 'cell', cells  );

		var exisiting = el.children('span.select-info');
		if ( exisiting.length ) {
			exisiting.remove();
		}

		if ( output.text() !== '' ) {
			el.append( output );
		}
	} );
}

/**
 * Initialisation of a new table. Attach event handlers and callbacks to allow
 * Select to operate correctly.
 *
 * This will occur _after_ the initial DataTables initialisation, although
 * before Ajax data is rendered, if there is ajax data
 *
 * @param  {DataTable.settings} ctx Settings object to operate on
 * @private
 */
function init ( ctx ) {
	var api = new DataTable.Api( ctx );

	// Row callback so that classes can be added to rows and cells if the item
	// was selected before the element was created. This will happen with the
	// `deferRender` option enabled.
	// 
	// This method of attaching to `aoRowCreatedCallback` is a hack until
	// DataTables has proper events for row manipulation If you are reviewing
	// this code to create your own plug-ins, please do not do this!
	ctx.aoRowCreatedCallback.push( {
		fn: function ( row, data, index ) {
			var i, ien;
			var d = ctx.aoData[ index ];

			// Row
			if ( d._select_selected ) {
				$( row ).addClass( ctx._select.className );
			}

			// Cells and columns - if separated out, we would need to do two
			// loops, so it makes sense to combine them into a single one
			for ( i=0, ien=ctx.aoColumns.length ; i<ien ; i++ ) {
				if ( ctx.aoColumns[i]._select_selected || (d._selected_cells && d._selected_cells[i]) ) {
					$(d.anCells[i]).addClass( ctx._select.className );
				}
			}
		},
		sName: 'select-deferRender'
	} );

	// On Ajax reload we want to reselect all rows which are currently selected,
	// if there is an rowId (i.e. a unique value to identify each row with)
	api.on( 'preXhr.dt.dtSelect', function () {
		// note that column selection doesn't need to be cached and then
		// reselected, as they are already selected
		var rows = api.rows( { selected: true } ).ids( true ).filter( function ( d ) {
			return d !== undefined;
		} );

		var cells = api.cells( { selected: true } ).eq(0).map( function ( cellIdx ) {
			var id = api.row( cellIdx.row ).id( true );
			return id ?
				{ row: id, column: cellIdx.column } :
				undefined;
		} ).filter( function ( d ) {
			return d !== undefined;
		} );

		// On the next draw, reselect the currently selected items
		api.one( 'draw.dt.dtSelect', function () {
			api.rows( rows ).select();

			// `cells` is not a cell index selector, so it needs a loop
			if ( cells.any() ) {
				cells.each( function ( id ) {
					api.cells( id.row, id.column ).select();
				} );
			}
		} );
	} );

	// Update the table information element with selected item summary
	api.on( 'draw.dtSelect.dt select.dtSelect.dt deselect.dtSelect.dt info.dt', function () {
		info( api );
	} );

	// Clean up and release
	api.on( 'destroy.dtSelect', function () {
		disableMouseSelection( api );
		api.off( '.dtSelect' );
	} );
}

/**
 * Add one or more items (rows or columns) to the selection when shift clicking
 * in OS selection style
 *
 * @param  {DataTable.Api} dt   DataTable
 * @param  {string}        type Row or column range selector
 * @param  {object}        idx  Item index to select to
 * @param  {object}        last Item index to select from
 * @private
 */
function rowColumnRange( dt, type, idx, last )
{
	// Add a range of rows from the last selected row to this one
	var indexes = dt[type+'s']( { search: 'applied' } ).indexes();
	var idx1 = $.inArray( last, indexes );
	var idx2 = $.inArray( idx, indexes );

	if ( ! dt[type+'s']( { selected: true } ).any() && idx1 === -1 ) {
		// select from top to here - slightly odd, but both Windows and Mac OS
		// do this
		indexes.splice( $.inArray( idx, indexes )+1, indexes.length );
	}
	else {
		// reverse so we can shift click 'up' as well as down
		if ( idx1 > idx2 ) {
			var tmp = idx2;
			idx2 = idx1;
			idx1 = tmp;
		}

		indexes.splice( idx2+1, indexes.length );
		indexes.splice( 0, idx1 );
	}

	if ( ! dt[type]( idx, { selected: true } ).any() ) {
		// Select range
		dt[type+'s']( indexes ).select();
	}
	else {
		// Deselect range - need to keep the clicked on row selected
		indexes.splice( $.inArray( idx, indexes ), 1 );
		dt[type+'s']( indexes ).deselect();
	}
}

/**
 * Clear all selected items
 *
 * @param  {DataTable.settings} ctx Settings object of the host DataTable
 * @param  {boolean} [force=false] Force the de-selection to happen, regardless
 *     of selection style
 * @private
 */
function clear( ctx, force )
{
	if ( force || ctx._select.style === 'single' ) {
		var api = new DataTable.Api( ctx );
		
		api.rows( { selected: true } ).deselect();
		api.columns( { selected: true } ).deselect();
		api.cells( { selected: true } ).deselect();
	}
}

/**
 * Select items based on the current configuration for style and items.
 *
 * @param  {object}             e    Mouse event object
 * @param  {DataTables.Api}     dt   DataTable
 * @param  {DataTable.settings} ctx  Settings object of the host DataTable
 * @param  {string}             type Items to select
 * @param  {int|object}         idx  Index of the item to select
 * @private
 */
function typeSelect ( e, dt, ctx, type, idx )
{
	var style = dt.select.style();
	var isSelected = dt[type]( idx, { selected: true } ).any();

	if ( style === 'os' ) {
		if ( e.ctrlKey || e.metaKey ) {
			// Add or remove from the selection
			dt[type]( idx ).select( ! isSelected );
		}
		else if ( e.shiftKey ) {
			if ( type === 'cell' ) {
				cellRange( dt, idx, ctx._select_lastCell || null );
			}
			else {
				rowColumnRange( dt, type, idx, ctx._select_lastCell ?
					ctx._select_lastCell[type] :
					null
				);
			}
		}
		else {
			// No cmd or shift click - deselect if selected, or select
			// this row only
			var selected = dt[type+'s']( { selected: true } );

			if ( isSelected && selected.flatten().length === 1 ) {
				dt[type]( idx ).deselect();
			}
			else {
				selected.deselect();
				dt[type]( idx ).select();
			}
		}
	} else if ( style == 'multi+shift' ) {
		if ( e.shiftKey ) {
			if ( type === 'cell' ) {
				cellRange( dt, idx, ctx._select_lastCell || null );
			}
			else {
				rowColumnRange( dt, type, idx, ctx._select_lastCell ?
					ctx._select_lastCell[type] :
					null
				);
			}
		}
		else {
			dt[ type ]( idx ).select( ! isSelected );
		}
	}
	else {
		dt[ type ]( idx ).select( ! isSelected );
	}
}



/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 * DataTables selectors
 */

// row and column are basically identical just assigned to different properties
// and checking a different array, so we can dynamically create the functions to
// reduce the code size
$.each( [
	{ type: 'row', prop: 'aoData' },
	{ type: 'column', prop: 'aoColumns' }
], function ( i, o ) {
	DataTable.ext.selector[ o.type ].push( function ( settings, opts, indexes ) {
		var selected = opts.selected;
		var data;
		var out = [];

		if ( selected !== true && selected !== false ) {
			return indexes;
		}

		for ( var i=0, ien=indexes.length ; i<ien ; i++ ) {
			data = settings[ o.prop ][ indexes[i] ];

			if ( (selected === true && data._select_selected === true) ||
			     (selected === false && ! data._select_selected )
			) {
				out.push( indexes[i] );
			}
		}

		return out;
	} );
} );

DataTable.ext.selector.cell.push( function ( settings, opts, cells ) {
	var selected = opts.selected;
	var rowData;
	var out = [];

	if ( selected === undefined ) {
		return cells;
	}

	for ( var i=0, ien=cells.length ; i<ien ; i++ ) {
		rowData = settings.aoData[ cells[i].row ];

		if ( (selected === true && rowData._selected_cells && rowData._selected_cells[ cells[i].column ] === true) ||
		     (selected === false && ( ! rowData._selected_cells || ! rowData._selected_cells[ cells[i].column ] ) )
		) {
			out.push( cells[i] );
		}
	}

	return out;
} );



/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 * DataTables API
 *
 * For complete documentation, please refer to the docs/api directory or the
 * DataTables site
 */

// Local variables to improve compression
var apiRegister = DataTable.Api.register;
var apiRegisterPlural = DataTable.Api.registerPlural;

apiRegister( 'select()', function () {
	return this.iterator( 'table', function ( ctx ) {
		DataTable.select.init( new DataTable.Api( ctx ) );
	} );
} );

apiRegister( 'select.blurable()', function ( flag ) {
	if ( flag === undefined ) {
		return this.context[0]._select.blurable;
	}

	return this.iterator( 'table', function ( ctx ) {
		ctx._select.blurable = flag;
	} );
} );

apiRegister( 'select.info()', function ( flag ) {
	if ( info === undefined ) {
		return this.context[0]._select.info;
	}

	return this.iterator( 'table', function ( ctx ) {
		ctx._select.info = flag;
	} );
} );

apiRegister( 'select.items()', function ( items ) {
	if ( items === undefined ) {
		return this.context[0]._select.items;
	}

	return this.iterator( 'table', function ( ctx ) {
		ctx._select.items = items;

		eventTrigger( new DataTable.Api( ctx ), 'selectItems', [ items ] );
	} );
} );

// Takes effect from the _next_ selection. None disables future selection, but
// does not clear the current selection. Use the `deselect` methods for that
apiRegister( 'select.style()', function ( style ) {
	if ( style === undefined ) {
		return this.context[0]._select.style;
	}

	return this.iterator( 'table', function ( ctx ) {
		ctx._select.style = style;

		if ( ! ctx._select_init ) {
			init( ctx );
		}

		// Add / remove mouse event handlers. They aren't required when only
		// API selection is available
		var dt = new DataTable.Api( ctx );
		disableMouseSelection( dt );
		
		if ( style !== 'api' ) {
			enableMouseSelection( dt );
		}

		eventTrigger( new DataTable.Api( ctx ), 'selectStyle', [ style ] );
	} );
} );

apiRegister( 'select.selector()', function ( selector ) {
	if ( selector === undefined ) {
		return this.context[0]._select.selector;
	}

	return this.iterator( 'table', function ( ctx ) {
		disableMouseSelection( new DataTable.Api( ctx ) );

		ctx._select.selector = selector;

		if ( ctx._select.style !== 'api' ) {
			enableMouseSelection( new DataTable.Api( ctx ) );
		}
	} );
} );



apiRegisterPlural( 'rows().select()', 'row().select()', function ( select ) {
	var api = this;

	if ( select === false ) {
		return this.deselect();
	}

	this.iterator( 'row', function ( ctx, idx ) {
		clear( ctx );

		ctx.aoData[ idx ]._select_selected = true;
		$( ctx.aoData[ idx ].nTr ).addClass( ctx._select.className );
	} );

	this.iterator( 'table', function ( ctx, i ) {
		eventTrigger( api, 'select', [ 'row', api[i] ], true );
	} );

	return this;
} );

apiRegisterPlural( 'columns().select()', 'column().select()', function ( select ) {
	var api = this;

	if ( select === false ) {
		return this.deselect();
	}

	this.iterator( 'column', function ( ctx, idx ) {
		clear( ctx );

		ctx.aoColumns[ idx ]._select_selected = true;

		var column = new DataTable.Api( ctx ).column( idx );

		$( column.header() ).addClass( ctx._select.className );
		$( column.footer() ).addClass( ctx._select.className );

		column.nodes().to$().addClass( ctx._select.className );
	} );

	this.iterator( 'table', function ( ctx, i ) {
		eventTrigger( api, 'select', [ 'column', api[i] ], true );
	} );

	return this;
} );

apiRegisterPlural( 'cells().select()', 'cell().select()', function ( select ) {
	var api = this;

	if ( select === false ) {
		return this.deselect();
	}

	this.iterator( 'cell', function ( ctx, rowIdx, colIdx ) {
		clear( ctx );

		var data = ctx.aoData[ rowIdx ];

		if ( data._selected_cells === undefined ) {
			data._selected_cells = [];
		}

		data._selected_cells[ colIdx ] = true;

		if ( data.anCells ) {
			$( data.anCells[ colIdx ] ).addClass( ctx._select.className );
		}
	} );

	this.iterator( 'table', function ( ctx, i ) {
		eventTrigger( api, 'select', [ 'cell', api[i] ], true );
	} );

	return this;
} );


apiRegisterPlural( 'rows().deselect()', 'row().deselect()', function () {
	var api = this;

	this.iterator( 'row', function ( ctx, idx ) {
		ctx.aoData[ idx ]._select_selected = false;
		$( ctx.aoData[ idx ].nTr ).removeClass( ctx._select.className );
	} );

	this.iterator( 'table', function ( ctx, i ) {
		eventTrigger( api, 'deselect', [ 'row', api[i] ], true );
	} );

	return this;
} );

apiRegisterPlural( 'columns().deselect()', 'column().deselect()', function () {
	var api = this;

	this.iterator( 'column', function ( ctx, idx ) {
		ctx.aoColumns[ idx ]._select_selected = false;

		var api = new DataTable.Api( ctx );
		var column = api.column( idx );

		$( column.header() ).removeClass( ctx._select.className );
		$( column.footer() ).removeClass( ctx._select.className );

		// Need to loop over each cell, rather than just using
		// `column().nodes()` as cells which are individually selected should
		// not have the `selected` class removed from them
		api.cells( null, idx ).indexes().each( function (cellIdx) {
			var data = ctx.aoData[ cellIdx.row ];
			var cellSelected = data._selected_cells;

			if ( data.anCells && (! cellSelected || ! cellSelected[ cellIdx.column ]) ) {
				$( data.anCells[ cellIdx.column  ] ).removeClass( ctx._select.className );
			}
		} );
	} );

	this.iterator( 'table', function ( ctx, i ) {
		eventTrigger( api, 'deselect', [ 'column', api[i] ], true );
	} );

	return this;
} );

apiRegisterPlural( 'cells().deselect()', 'cell().deselect()', function () {
	var api = this;

	this.iterator( 'cell', function ( ctx, rowIdx, colIdx ) {
		var data = ctx.aoData[ rowIdx ];

		data._selected_cells[ colIdx ] = false;

		// Remove class only if the cells exist, and the cell is not column
		// selected, in which case the class should remain (since it is selected
		// in the column)
		if ( data.anCells && ! ctx.aoColumns[ colIdx ]._select_selected ) {
			$( data.anCells[ colIdx ] ).removeClass( ctx._select.className );
		}
	} );

	this.iterator( 'table', function ( ctx, i ) {
		eventTrigger( api, 'deselect', [ 'cell', api[i] ], true );
	} );

	return this;
} );



/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 * Buttons
 */
function i18n( label, def ) {
	return function (dt) {
		return dt.i18n( 'buttons.'+label, def );
	};
}

// Common events with suitable namespaces
function namespacedEvents ( config ) {
	var unique = config._eventNamespace;

	return 'draw.dt.DT'+unique+' select.dt.DT'+unique+' deselect.dt.DT'+unique;
}

function enabled ( dt, config ) {
	if ( $.inArray( 'rows', config.limitTo ) !== -1 && dt.rows( { selected: true } ).any() ) {
		return true;
	}

	if ( $.inArray( 'columns', config.limitTo ) !== -1 && dt.columns( { selected: true } ).any() ) {
		return true;
	}

	if ( $.inArray( 'cells', config.limitTo ) !== -1 && dt.cells( { selected: true } ).any() ) {
		return true;
	}

	return false;
}

var _buttonNamespace = 0;

$.extend( DataTable.ext.buttons, {
	selected: {
		text: i18n( 'selected', 'Selected' ),
		className: 'buttons-selected',
		limitTo: [ 'rows', 'columns', 'cells' ],
		init: function ( dt, node, config ) {
			var that = this;
			config._eventNamespace = '.select'+(_buttonNamespace++);

			// .DT namespace listeners are removed by DataTables automatically
			// on table destroy
			dt.on( namespacedEvents(config), function () {
				that.enable( enabled(dt, config) );
			} );

			this.disable();
		},
		destroy: function ( dt, node, config ) {
			dt.off( config._eventNamespace );
		}
	},
	selectedSingle: {
		text: i18n( 'selectedSingle', 'Selected single' ),
		className: 'buttons-selected-single',
		init: function ( dt, node, config ) {
			var that = this;
			config._eventNamespace = '.select'+(_buttonNamespace++);

			dt.on( namespacedEvents(config), function () {
				var count = dt.rows( { selected: true } ).flatten().length +
				            dt.columns( { selected: true } ).flatten().length +
				            dt.cells( { selected: true } ).flatten().length;

				that.enable( count === 1 );
			} );

			this.disable();
		},
		destroy: function ( dt, node, config ) {
			dt.off( config._eventNamespace );
		}
	},
	selectAll: {
		text: i18n( 'selectAll', 'Select all' ),
		className: 'buttons-select-all',
		action: function () {
			var items = this.select.items();
			this[ items+'s' ]().select();
		}
	},
	selectNone: {
		text: i18n( 'selectNone', 'Deselect all' ),
		className: 'buttons-select-none',
		action: function () {
			clear( this.settings()[0], true );
		},
		init: function ( dt, node, config ) {
			var that = this;
			config._eventNamespace = '.select'+(_buttonNamespace++);

			dt.on( namespacedEvents(config), function () {
				var count = dt.rows( { selected: true } ).flatten().length +
				            dt.columns( { selected: true } ).flatten().length +
				            dt.cells( { selected: true } ).flatten().length;

				that.enable( count > 0 );
			} );

			this.disable();
		},
		destroy: function ( dt, node, config ) {
			dt.off( config._eventNamespace );
		}
	}
} );

$.each( [ 'Row', 'Column', 'Cell' ], function ( i, item ) {
	var lc = item.toLowerCase();

	DataTable.ext.buttons[ 'select'+item+'s' ] = {
		text: i18n( 'select'+item+'s', 'Select '+lc+'s' ),
		className: 'buttons-select-'+lc+'s',
		action: function () {
			this.select.items( lc );
		},
		init: function ( dt ) {
			var that = this;

			dt.on( 'selectItems.dt.DT', function ( e, ctx, items ) {
				that.active( items === lc );
			} );
		}
	};
} );



/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 * Initialisation
 */

// DataTables creation - check if select has been defined in the options. Note
// this required that the table be in the document! If it isn't then something
// needs to trigger this method unfortunately. The next major release of
// DataTables will rework the events and address this.
$(document).on( 'preInit.dt.dtSelect', function (e, ctx) {
	if ( e.namespace !== 'dt' ) {
		return;
	}

	DataTable.select.init( new DataTable.Api( ctx ) );
} );


return DataTable.select;
}));


